From 2ab442f7b8a36dccde77d4e09bfe6b25cb6829f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6kay=20G=C3=BCrcan?= Date: Sun, 7 Jan 2024 15:22:16 +0100 Subject: [PATCH] fix: make version value available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gökay Gürcan --- .github/workflows/dockerimage.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index fb7e1e1..689636f 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -27,6 +27,7 @@ jobs: nginx: name: nginx runs-on: ubuntu-latest + needs: [ version ] env: CI: true steps: @@ -51,7 +52,7 @@ jobs: - id: build name: Build image run: | - docker build --file Dockerfile --tag gokaygurcan/nginx:latest --tag gokaygurcan/nginx:${{ steps.version.outputs.version }} . + docker build --file Dockerfile --tag gokaygurcan/nginx:latest --tag gokaygurcan/nginx:${{ needs.version.outputs.version }} . docker ps -a - id: test @@ -71,4 +72,4 @@ jobs: push: true tags: | gokaygurcan/nginx:latest - gokaygurcan/nginx:${{ steps.version.outputs.version }} + gokaygurcan/nginx:${{ needs.version.outputs.version }}