Skip to content

Commit

Permalink
feat: Add image tag update
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowtham1729 committed Nov 3, 2023
1 parent c65048e commit 5968d95
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,14 @@ jobs:
# Push the Docker image to Google Artifact Registry
- name: Publish
run: task push-backend-image tag="$GITHUB_SHA"

- name: Replace Backend Image Tag
run: sed -i "s/\(&backendImageTag\) [^[:space:]]*/\1 $GITHUB_SHA/g" infrastructure/k8s/folio-feed-helm/values.yaml

- name: Commit the Changes
run: |
git config user.name "Github Actions"
git config user.email github-actions@github.com
git add infrastructure/k8s/folio-feed-helm/values.yaml
git commit -m "backend image update: $GITHUB_SHA"
git push origin main
4 changes: 2 additions & 2 deletions infrastructure/k8s/folio-feed-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ backend:
image:
registry: us-central1-docker.pkg.dev/folio-feed-403709/image-registry
repository: folio-feed-backend
tag: v1.4.1
tag: v1.4.1 &backendImageTag

replicaCount: 1
autoscaling:
Expand All @@ -26,7 +26,7 @@ frontend:
image:
registry: us-central1-docker.pkg.dev/folio-feed-403709/image-registry
repository: folio-feed-frontend
tag: v1.0.0
tag: v1.0.0 &frontendImageTag

replicaCount: 1
autoscaling:
Expand Down

0 comments on commit 5968d95

Please sign in to comment.