Skip to content

Commit 012ad6c

Browse files
authored
Make artifact names unique (#159)
1 parent 8852b18 commit 012ad6c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/build_ghcr.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
- name: Upload digests
139139
uses: actions/upload-artifact@v4
140140
with:
141-
name: digests-${{ matrix.branch }}-${{ github.run_id }}
141+
name: digests-${{ matrix.branch }}-${{ matrix.base.name }}-${{ github.run_id }}
142142
path: /tmp/digests/**
143143
if-no-files-found: error
144144
retention-days: 1
@@ -151,18 +151,22 @@ jobs:
151151
strategy:
152152
fail-fast: false
153153
matrix:
154-
ubuntu: [noble]
154+
platform: [linux/amd64]
155+
branch: [devel, release]
156+
base:
157+
- {image: "ubuntu:noble", name: "noble"}
158+
- {image: "nvcr.io/nvidia/cuda:12.9.0-devel-ubuntu24.04", name: "nvidia-noble"}
155159
steps:
156160
- name: Download digests devel
157161
uses: actions/download-artifact@v4
158162
with:
159-
name: digests-devel-${{ github.run_id }}
163+
name: digests-devel-${{ matrix.base.name }}-${{ github.run_id }}
160164
path: /tmp/digests-devel
161165

162166
- name: Download digests release
163167
uses: actions/download-artifact@v4
164168
with:
165-
name: digests-release-${{ github.run_id }}
169+
name: digests-release-${{ matrix.base.name }}-${{ github.run_id }}
166170
path: /tmp/digests-release
167171

168172
- run: mkdir -p /tmp/digests && mv /tmp/digests-devel/* /tmp/digests/ && mv /tmp/digests-release/* /tmp/digests/
@@ -185,7 +189,7 @@ jobs:
185189
with:
186190
images: ghcr.io/${{ github.repository }}
187191
tags: |
188-
type=raw,value=${{ matrix.ubuntu }}
192+
type=raw,value=${{ matrix.base.name }}
189193
190194
- name: Extract container name without tag
191195
id: vars

0 commit comments

Comments
 (0)