From 9b0e1c74702506ddef2d47c73ca56d119e7c3393 Mon Sep 17 00:00:00 2001 From: AKP Date: Sat, 13 Aug 2022 20:10:43 +0100 Subject: [PATCH] Set version number when building in CI Signed-off-by: AKP --- .github/workflows/docker-image.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 5d64bbb..e07113b 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -25,7 +25,10 @@ jobs: run: | echo "::set-output name=LATEST::$IMAGE_NAME:latest" echo "::set-output name=VERSIONED::$IMAGE_NAME:${{ steps.get_version.outputs.VERSION }}" - + + - name: Set version number + run: bash setVersionNumber.sh "${{ steps.get_version.outputs.VERSION }}" + - name: Build Docker image run: docker build . --file Dockerfile --tag ${{ steps.make_tags.outputs.LATEST }} --tag ${{ steps.make_tags.outputs.VERSIONED }}