Skip to content

Commit

Permalink
chore: Use Git tag as Comet version when publishing Docker images (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove authored Aug 21, 2024
1 parent 042ada7 commit cddebc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
- name: Extract Comet version
id: extract_version
run: |
COMET_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "COMET_VERSION=$COMET_VERSION" >> $GITHUB_ENV
# use the tag that triggered this workflow as the Comet version e.g. 0.2.0-rc1
echo "COMET_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Echo Comet version
run: echo "The current Comet version is ${{ env.COMET_VERSION }}"
- name: Set up Docker Buildx
Expand Down

0 comments on commit cddebc0

Please sign in to comment.