Skip to content

Commit

Permalink
ci: Use setup-kustomize (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina authored Sep 29, 2023
1 parent 6b24438 commit ae94de9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/staging-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,14 @@ jobs:
cluster_name: ${{ env.GKE_CLUSTER }}
location: ${{ env.GKE_ZONE }}

- name: Set up Kustomize
run: |
curl -sfLo kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/v5.1.1/kustomize_5.1.1_linux_amd64
chmod u+x ./kustomize
- uses: "syntaqx/setup-kustomize@v1"
with:
kustomize-version: "5.1.1"

- name: Deploy to the GKE cluster
run: |
./kustomize edit set image ghcr.io/approvers/pulsate/${{ steps.microservice-name.outputs.service-name }}:$GITHUB_SHA
./kustomize build . | kubectl apply -f -
kustomize edit set image ghcr.io/approvers/pulsate/${{ steps.microservice-name.outputs.service-name }}:$GITHUB_SHA
kustomize build . | kubectl apply -f -
kubectl rollout status deployment/staging
kubectl get services -o wide

0 comments on commit ae94de9

Please sign in to comment.