Skip to content

Commit

Permalink
fix: make version value available
Browse files Browse the repository at this point in the history
Signed-off-by: Gökay Gürcan <[email protected]>
  • Loading branch information
gokaygurcan committed Jan 7, 2024
1 parent ef992e6 commit 2ab442f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
nginx:
name: nginx
runs-on: ubuntu-latest
needs: [ version ]
env:
CI: true
steps:
Expand All @@ -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
Expand All @@ -71,4 +72,4 @@ jobs:
push: true
tags: |
gokaygurcan/nginx:latest
gokaygurcan/nginx:${{ steps.version.outputs.version }}
gokaygurcan/nginx:${{ needs.version.outputs.version }}

0 comments on commit 2ab442f

Please sign in to comment.