Skip to content

Commit

Permalink
Fixed the "Setup yq" part of the deploy workflow
Browse files Browse the repository at this point in the history
no issue
  • Loading branch information
sam-lord committed Sep 8, 2023
1 parent 293af5d commit 9a78bee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ jobs:
kubectl kustomize ./k8s/overlays/${{ env.ENVIRONMENT }} > /tmp/built-manifest.yaml
- name: Setup yq
run: |
wget https://github.com/mikefarah/yq/releases/download/v4.35.1/yq_linux_amd64.tar.gz -O - |\
tar xz && mv yq_linux_amd64 /usr/bin/yq
uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/mikefarah/yq/releases/download/v4.35.1/yq_linux_amd64'
name: 'yq'
version: '4.35.1'

- name: Extract Deployment Name and Namespace
run: |
deployment_name=$(yq e 'select(.kind == "Deployment") | .metadata.name' /tmp/built-manifest.yaml)
Expand Down

0 comments on commit 9a78bee

Please sign in to comment.