Skip to content

Commit

Permalink
add "v" to version tags
Browse files Browse the repository at this point in the history
  • Loading branch information
awahlig committed Feb 6, 2024
1 parent bcd575d commit d7e8a05
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
VERSION=$(curl -s 'https://pkgs.tailscale.com/stable/?mode=json' | jq -r '.TarballsVersion')
echo "Tailscale version $VERSION"
echo "::set-output name=VERSION::$VERSION"
echo "version=$VERSION" >> GITHUB_OUTPUT
- name: Install cosign
if: github.event_name != 'pull_request'
Expand Down Expand Up @@ -71,7 +71,8 @@ jobs:
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: ${{ steps.fetch-version.outputs.VERSION }},latest
tags: |
type=raw,value=v${{ steps.fetch-version.outputs.version }},latest
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
Expand All @@ -83,7 +84,7 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: VERSION=${{ steps.fetch-version.outputs.VERSION }}
build-args: VERSION=${{ steps.fetch-version.outputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down

0 comments on commit d7e8a05

Please sign in to comment.