We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c5373d commit 24de9abCopy full SHA for 24de9ab
.github/workflows/container-images.yml
@@ -4,6 +4,8 @@ on:
4
push:
5
branches:
6
- main
7
+ tags:
8
+ - '**'
9
pull_request:
10
11
@@ -47,6 +49,15 @@ jobs:
47
49
with:
48
50
platforms: ${{ env.IMAGE_PLATFORMS }}
51
52
+ - name: info
53
+ id: info
54
+ run: |
55
+ VERSION=dev
56
+ if [ "${{ github.ref_type }}" = 'tag' ]; then
57
+ VERSION="${{ github.ref_name }}"
58
+ fi
59
+ echo "VERSION=${VERSION}" | tee -a "$GITHUB_OUTPUT"
60
+
61
# FIXME: disable provenance due to https://github.com/snok/container-retention-policy/issues/63
62
- name: build and push container images
63
run: |
@@ -56,6 +67,7 @@ jobs:
67
esac
68
69
make image-${{ matrix.image }} \
70
+ VERSION=${{ steps.info.outputs.VERSION }} \
71
IMAGE_PLATFORMS=${{ env.IMAGE_PLATFORMS }} \
72
BUILDX_OUTPUT="${BUILDX_OUTPUT} --provenance=false"
73
0 commit comments