Skip to content

Commit 2b516cc

Browse files
authored
Fix container builds in CI (#234)
1 parent 4095383 commit 2b516cc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/container_images.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
if: github.event_name != 'pull_request'
9090
uses: actions/upload-artifact@v4
9191
with:
92-
name: digests-${{ matrix.variance.image }}-${{ matrix.platform.arch }}
92+
name: digests-${{ replace(matrix.variance.image, '/', '-') }}-${{ matrix.platform.arch }}
9393
path: /tmp/digests/*
9494
if-no-files-found: error
9595
retention-days: 1
@@ -121,7 +121,7 @@ jobs:
121121
uses: actions/download-artifact@v4
122122
with:
123123
path: /tmp/digests
124-
pattern: digests-${{ matrix.variance.image }}-*
124+
pattern: digests-${{ replace(matrix.variance.image, '/', '-') }}-*
125125
merge-multiple: true
126126
- name: Set up Docker Buildx
127127
uses: docker/setup-buildx-action@v3
@@ -132,8 +132,12 @@ jobs:
132132
images: ${{ env.REGISTRY }}/${{ matrix.variance.image }}
133133
tags: |
134134
type=ref,event=branch
135+
type=ref,event=pr
136+
type=semver,pattern={{version}}
137+
type=semver,pattern={{major}}.{{minor}}
138+
type=semver,pattern={{major}}
135139
type=sha,format=short
136-
type=raw,value=latest
140+
type=raw,value=latest,enable={{is_default_branch}}
137141
- name: Login to Registry
138142
uses: docker/login-action@v3
139143
with:

0 commit comments

Comments
 (0)