From 1aeb32829deadb2e106015f51b19bee3b5a6c49f Mon Sep 17 00:00:00 2001 From: devbyteops Date: Tue, 24 Dec 2024 15:30:15 +0530 Subject: [PATCH] fix versioning --- .github/workflows/docker-publish.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml index 0fc5b88..c66dc27 100644 --- a/.github/workflows/docker-publish.yaml +++ b/.github/workflows/docker-publish.yaml @@ -9,6 +9,7 @@ jobs: runs-on: ubuntu-latest env: IMG_NAME: ${{ github.repository }} + IMG_VERSION: 0.0.3 steps: - name: Checkout uses: actions/checkout@v3 @@ -26,7 +27,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build docker image - run: docker build -t docker.io/${{ github.repository }}:0.0.3 . # change version + run: docker build -t docker.io/${{ github.repository }}:${{ env.IMG_VERSION }} . - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@0.28.0