Skip to content

Commit

Permalink
feat: add version back
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed Aug 16, 2024
1 parent 266114f commit da93ec4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit da93ec4

Please sign in to comment.