Skip to content

Commit

Permalink
build/deploy: kustomize path fix stage/prod
Browse files Browse the repository at this point in the history
  • Loading branch information
enapupe committed Dec 10, 2023
1 parent d7fad9f commit 07b2b88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
ref: main
- uses: imranismail/setup-kustomize@v2
- run: |
cd stage
kustomize edit set image vnguyen/openbeta-graph-api:sha-${GITHUB_SHA}
- name: Check if there is any change
id: get_changes
run: echo "changed=$(git status --porcelain | wc -l)" >> $GITHUB_OUTPUT
- name: Push if tag has changes
if: steps.get_changes.outputs.changed != 0
run: |
cd api-server-deployment/stage
git config user.name github-actions
git config user.email [email protected]
git commit -am "Update deployment. Code=${GITHUB_SHA}"
Expand All @@ -54,6 +54,7 @@ jobs:
ref: main
- uses: imranismail/setup-kustomize@v2
- run: |
cd prod
kustomize edit set image vnguyen/openbeta-graph-api:${GITHUB_REF}
- name: Check if there is any change
id: get_changes
Expand Down

0 comments on commit 07b2b88

Please sign in to comment.