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 fabdfa3 commit 308659c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/gc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,16 @@ jobs:
cd ./k8s
# Replace the image name in the k8s template
./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:"
./kustomize edit set image carlohcs/kubernetes-ci-cd-github-actions="$GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$IMAGE:$GITHUB_SHA"
# Build and apply the kustomization
./kustomize build | kubectl apply --validate=false -f -
./kustomize build . | kubectl apply --validate=false -f -
# Check the rollout status
# kubectl rollout status deployment/$DEPLOYMENT_NAME
# Get services information
kubectl get services -o wide
# Get pods information
kubectl get pods -o wide

0 comments on commit 308659c

Please sign in to comment.