Skip to content

Commit cb2b785

Browse files
Get image version fron publish output
1 parent c50e117 commit cb2b785

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/pipeline.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737

3838
build-and-publish:
3939
name: Create and push Docker image
40+
outputs:
41+
image_version: ${{ steps.meta.outputs.version }}
4042
needs: lint-and-test
4143
# if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
4244
runs-on: ubuntu-latest
@@ -91,7 +93,7 @@ jobs:
9193
with:
9294
CLUSTER_NAME: "hstk8s"
9395
ENVIRONMENT: stage
94-
IMAGE_VERSION: ${{ env.APP_VERSION }}
96+
IMAGE_VERSION: ${{ needs.build-and-publish.outputs.image_version }}
9597
secrets:
9698
VAULT_URL: ${{ secrets.NB_VAULT_URL }}
9799
VAULT_SECRET_PATH: ${{ secrets.TEKST_VAULT_SECRET_PATH }}

0 commit comments

Comments
 (0)