Skip to content

Commit

Permalink
chore: Update GKE credentials setup and location in gc.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
carlohcs committed Aug 12, 2024
1 parent 4fb9d45 commit fabdfa3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/gc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ jobs:
cd ./k8s
# Replace the image name in the k8s template
./kustomize edit set image $GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$IMAGE:TAG=$GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$IMAGE:$GITHUB_SHA
./kustomize edit set image "$GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$IMAGE::$GITHUB_SHA"
# ./kustomize edit set image "$GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$IMAGE:"
# Build and apply the kustomization
./kustomize build | kubectl apply --validate=false -f -
Expand Down
4 changes: 2 additions & 2 deletions k8s/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ resources:

images:
- name: carlohcs/kubernetes-ci-cd-github-actions
newName: $GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$IMAGE
newTag: $GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$IMAGE:$GITHUB_SHA
# newName: $GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$IMAGE
# newTag: $GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$IMAGE:$GITHUB_SHA

0 comments on commit fabdfa3

Please sign in to comment.