Skip to content

Commit

Permalink
fix: Tag images with the bare version.
Browse files Browse the repository at this point in the history
  • Loading branch information
d0ugal committed Jan 28, 2025
1 parent 24c91b2 commit 7ac420d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build_and_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ jobs:

container:
image: ghcr.io/grafana/grafana-build-tools:v0.36.0@sha256:deec32592848cde11ff64b4a5803b85546027dfb7b98921a0d0b89cd2226612f
outputs:
version: ${{ steps.version.outputs.value }}
outputs
version: ${{ steps.version.outputs.value }}:
version_bare: ${{ steps.version.outputs.barevalue }}

steps:
- name: checkout
Expand Down Expand Up @@ -73,6 +74,7 @@ jobs:
run: |
make version
echo "value=$(cat dist/version)" >> "$GITHUB_OUTPUT"
echo "barevalue=$(cat dist/version | cut -d- -f1)" >> "$GITHUB_OUTPUT"
- name: build
run: make build-native
Expand Down Expand Up @@ -213,6 +215,7 @@ jobs:
platforms: ${{ steps.extract-build-artifacts.outputs.platforms }}
tags: |-
type=raw,value=${{ needs.validate.outputs.version }}
type=raw,value=${{ needs.validate.outputs.version_bare }}
type=sha,prefix=sha-,format=short
latest
file: Dockerfile.no-browser
Expand All @@ -226,6 +229,7 @@ jobs:
platforms: ${{ steps.extract-build-artifacts.outputs.platforms }}
tags: |-
type=raw,value=${{ needs.validate.outputs.version }}-browser
type=raw,value=${{ needs.validate.outputs.version_bare }}-browser
type=sha,prefix=sha-,suffix=-browser,format=short
latest-browser
file: Dockerfile.browser
Expand Down

0 comments on commit 7ac420d

Please sign in to comment.