|
79 | 79 | outputs: type=image,name=${{ env.REGISTRY }}/${{ matrix.variance.image }},push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' }}
|
80 | 80 | cache-from: type=gha
|
81 | 81 | cache-to: type=gha,mode=max
|
| 82 | + - name: Set artifact name |
| 83 | + if: github.event_name != 'pull_request' |
| 84 | + run: | |
| 85 | + ARTIFACT_NAME="${{ matrix.variance.image }}" |
| 86 | + ARTIFACT_NAME="${ARTIFACT_NAME//\//-}" |
| 87 | + echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV |
82 | 88 | - name: Export digest
|
83 | 89 | if: github.event_name != 'pull_request'
|
84 | 90 | run: |
|
|
89 | 95 | if: github.event_name != 'pull_request'
|
90 | 96 | uses: actions/upload-artifact@v4
|
91 | 97 | with:
|
92 |
| - name: digests-${{ replace(matrix.variance.image, '/', '-') }}-${{ matrix.platform.arch }} |
| 98 | + name: digests-${{ env.ARTIFACT_NAME }}-${{ matrix.platform.arch }} |
93 | 99 | path: /tmp/digests/*
|
94 | 100 | if-no-files-found: error
|
95 | 101 | retention-days: 1
|
@@ -117,11 +123,16 @@ jobs:
|
117 | 123 | - name: RockyLinux-9/CUDA-12.8.1
|
118 | 124 | image: "rust-gpu/rust-cuda-rockylinux9-cuda12"
|
119 | 125 | steps:
|
| 126 | + - name: Set artifact name |
| 127 | + run: | |
| 128 | + ARTIFACT_NAME="${{ matrix.variance.image }}" |
| 129 | + ARTIFACT_NAME="${ARTIFACT_NAME//\//-}" |
| 130 | + echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV |
120 | 131 | - name: Download digests
|
121 | 132 | uses: actions/download-artifact@v4
|
122 | 133 | with:
|
123 | 134 | path: /tmp/digests
|
124 |
| - pattern: digests-${{ replace(matrix.variance.image, '/', '-') }}-* |
| 135 | + pattern: digests-${{ env.ARTIFACT_NAME }}-* |
125 | 136 | merge-multiple: true
|
126 | 137 | - name: Set up Docker Buildx
|
127 | 138 | uses: docker/setup-buildx-action@v3
|
|
0 commit comments