diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 73d050e7..c7736367 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -26,6 +26,7 @@ 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 @@ -33,7 +34,6 @@ jobs: - 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 github-actions@github.com git commit -am "Update deployment. Code=${GITHUB_SHA}" @@ -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