Skip to content

Commit 2f2e87f

Browse files
committed
fix tags
1 parent 30bae12 commit 2f2e87f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
echo "BUILDBOX_IMAGE_VERSION=$(./internal/lib/docker_image_info.sh buildbox_version)" >> $GITHUB_ENV
4545
echo "BUILDBOX_IMAGE_NAME=$(./internal/lib/docker_image_info.sh buildbox_name)" >> $GITHUB_ENV
4646
env:
47-
platform: linux${{ matrix.arch.name }}
47+
platform: linux/${{ matrix.arch.name }}
4848

4949
- name: Docker meta
5050
id: meta
@@ -55,6 +55,7 @@ jobs:
5555
tags: |
5656
type=ref,event=branch
5757
type=ref,event=pr
58+
type=raw,value=${{ env.BUILDBOX_IMAGE_VERSION }}-${{ matrix.arch.name }}
5859
type=edge,enable=true,priority=700,prefix=,suffix=${{ matrix.arch.name }},branch=$repo.default_branch
5960
6061
- name: Login to GHCR
@@ -77,6 +78,7 @@ jobs:
7778
file: ./docker-images/buildbox/Dockerfile
7879
platforms: linux/${{ matrix.arch.name }}
7980
labels: ${{ steps.meta.outputs.labels }}
81+
tags: ${{ steps.meta.outputs.tags }}
8082
outputs: "type=image,name=${{ env.GHCR_REPO }},push-by-digest=true,name-canonical=true,push=true"
8183

8284
- name: Export digest
@@ -150,6 +152,7 @@ jobs:
150152
file: ./docker-images/testbox-ubuntu-${{ matrix.distro }}/Dockerfile
151153
platforms: linux/${{ matrix.arch.name }}
152154
labels: ${{ steps.meta.outputs.labels }}
155+
tags: ${{ steps.meta.outputs.tags }}
153156
outputs: "type=image,name=${{ env.GHCR_REPO }},push-by-digest=true,name-canonical=true,push=true"
154157

155158
- name: Export digest
@@ -223,6 +226,7 @@ jobs:
223226
file: ./docker-images/testbox-debian-${{ matrix.distro }}/Dockerfile
224227
platforms: linux/${{ matrix.arch.name }}
225228
labels: ${{ steps.meta.outputs.labels }}
229+
tags: ${{ steps.meta.outputs.tags }}
226230
outputs: "type=image,name=${{ env.GHCR_REPO }},push-by-digest=true,name-canonical=true,push=true"
227231

228232
- name: Export digest

0 commit comments

Comments
 (0)