Skip to content

Commit

Permalink
use env to get version
Browse files Browse the repository at this point in the history
  • Loading branch information
Iamdavidonuh committed Sep 3, 2024
1 parent b99f2d9 commit 1c74e11
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
# Extract only the numerical version part from the tag
VERSION=$(make workspace-crate-version CRATE_NAME=${{ needs.build_binaries_and_publish.outputs.bin_suffix }} | tail -n 1)
echo $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "BIN_VERSION=$VERSION" >> $GITHUB_ENV
- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
Expand All @@ -151,8 +151,7 @@ jobs:
images: ghcr.io/${{ github.repository_owner }}/${{needs.build_binaries_and_publish.outputs.bin_name}}
tags: |
type=schedule
type=ref,event=tag
type=semver,pattern={{version}},value=v${{steps.extract_version.outputs.VERSION}}
type=semver,pattern={{version}},value=v${{env.BIN_VERSION}}
labels: |
org.opencontainers.image.description=${{ env.DESCRIPTION }}
Expand Down

0 comments on commit 1c74e11

Please sign in to comment.