From da93ec457ff78f470840be8b409462c89f4f2ee5 Mon Sep 17 00:00:00 2001 From: johnson2427 Date: Fri, 16 Aug 2024 14:08:33 -0500 Subject: [PATCH] feat: add version back --- .github/workflows/build.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 534003badd..669624aaa9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -44,6 +44,10 @@ jobs: git tag echo ${{ steps.meta.outputs.tags }} + - name: Extract version from tag + if: startsWith(github.ref, 'refs/tags/') + run: echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV + - name: Log into GitHub Container Registry if: github.event_name != 'pull_request' uses: docker/login-action@v2 @@ -62,6 +66,7 @@ jobs: build-args: | BUILD_DATE=${{ github.event.repository.updated_at }} VCS_REF=${{ github.sha }} + VERSION=${{ env.VERSION }} - name: Build and push uses: docker/build-push-action@v4