File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,12 +8,17 @@ inputs:
88 TARGET :
99 required : false
1010name : Build
11+ outputs :
12+ IMAGE_DIGEST :
13+ description : image digest
14+ value : " ${{ steps.build.outputs.digest }}"
1115runs :
1216 steps :
1317 - run : " yq '.users.0.user.token' \" ${KUBECONFIG}\" | docker login -u appflow-deployer --password-stdin '${{ inputs.REGISTRY }}'"
1418 shell : bash
1519 - uses : docker/setup-buildx-action@v3
16- - uses : docker/build-push-action@v6
20+ - id : build
21+ uses : docker/build-push-action@v6
1722 with :
1823 provenance : false
1924 push : true
Original file line number Diff line number Diff line change 1414 with :
1515 KUBECONFIG_DATA : " ${{ secrets.KUBECONFIG_PROD }}"
1616 - env :
17+ IMAGE_DIGEST : " ${{ steps.build.outputs.IMAGE_DIGEST || 'not built in this job' }}"
1718 NEWLINE : |2+
1819
1920 name : k8ify deploy
Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ jobs:
1111 - uses : ./.github/actions/setup
1212 with :
1313 KUBECONFIG_DATA : " ${{ secrets.KUBECONFIG_PROD }}"
14- - uses : ./.github/actions/build
14+ - id : build
15+ uses : ./.github/actions/build
1516 with :
1617 IMGNAME : " ${{ env.CI_PROJECT_NAME }}"
1718 REGISTRY : " ${{ env.REGISTRY }}"
1819 - env :
20+ IMAGE_DIGEST : " ${{ steps.build.outputs.IMAGE_DIGEST || 'not built in this job' }}"
1921 NEWLINE : |2+
2022
2123 name : k8ify preview
Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ jobs:
1111 - uses : ./.github/actions/setup
1212 with :
1313 KUBECONFIG_DATA : " ${{ secrets.KUBECONFIG_TEST }}"
14- - uses : ./.github/actions/build
14+ - id : build
15+ uses : ./.github/actions/build
1516 with :
1617 IMGNAME : " ${{ env.CI_PROJECT_NAME }}"
1718 REGISTRY : " ${{ env.REGISTRY }}"
1819 - env :
20+ IMAGE_DIGEST : " ${{ steps.build.outputs.IMAGE_DIGEST || 'not built in this job' }}"
1921 NEWLINE : |2+
2022
2123 name : k8ify preview
2628 rm .composeenv
2729 kubectl diff -f manifests/ || true
2830 - env :
31+ IMAGE_DIGEST : " ${{ steps.build.outputs.IMAGE_DIGEST || 'not built in this job' }}"
2932 NEWLINE : |2+
3033
3134 name : k8ify deploy
Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ services:
55 - " 8080:8080"
66 environment :
77 - admin_pw=$ADMIN_PW
8+ labels :
9+ k8ify.annotations.IMAGE_DIGEST : $IMAGE_DIGEST
You can’t perform that action at this time.
0 commit comments