Skip to content

Commit 7650bbb

Browse files
committed
fix build
1 parent c7c616a commit 7650bbb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
build-and-push-image:
2727
runs-on: ubuntu-latest
2828
needs: install
29+
outputs:
30+
latest_sha: ${{ steps.export-sha.outputs.sha }}
2931

3032
steps:
3133
- name: 📥 Checkout Repository
@@ -63,9 +65,15 @@ jobs:
6365
docker push ${{ vars.IMAGE_REGISTRY }}:$LATEST_SHA
6466
docker push ${{ vars.IMAGE_REGISTRY }}:latest
6567
68+
- name: 📤 Set Output for Latest SHA
69+
id: export-sha
70+
run: echo "sha=$LATEST_SHA" >> $GITHUB_OUTPUT
71+
6672
deploy-to-eks:
6773
runs-on: ubuntu-latest
6874
needs: build-and-push-image
75+
env:
76+
LATEST_SHA: ${{ needs.build-and-push-image.outputs.latest_sha }}
6977

7078
steps:
7179
- name: 📥 Checkout Repository

0 commit comments

Comments
 (0)