|
39 | 39 | env: |
40 | 40 | IMAGE_NAME: ${{ needs.image-details.outputs.base-name }} |
41 | 41 | IMAGE_URL: ${{ needs.image-details.outputs.base-url }} |
| 42 | + # Image variant name is drawn from final `--dir` entry in file generation command line |
42 | 43 | IMAGE_DIR: build/standard |
43 | 44 |
|
44 | 45 | steps: |
|
96 | 97 | attestations: write |
97 | 98 | id-token: write |
98 | 99 | env: |
99 | | - # Image variant name is drawn from final `--dir` entry in file generation command line |
100 | 100 | IMAGE_NAME: ${{ needs.image-details.outputs.base-name }}-plugins |
101 | 101 | IMAGE_URL: ${{ needs.image-details.outputs.base-url }}-plugins |
| 102 | + # Image variant name is drawn from final `--dir` entry in file generation command line |
102 | 103 | IMAGE_DIR: build/plugins |
103 | 104 |
|
104 | 105 | steps: |
@@ -154,9 +155,9 @@ jobs: |
154 | 155 | attestations: write |
155 | 156 | id-token: write |
156 | 157 | env: |
157 | | - # Image variant name is drawn from final `--dir` entry in file generation command line |
158 | 158 | IMAGE_NAME: ${{ needs.image-details.outputs.base-name }}-arm-none-eabi |
159 | 159 | IMAGE_URL: ${{ needs.image-details.outputs.base-url }}-arm-none-eabi |
| 160 | + # Image variant name is drawn from final `--dir` entry in file generation command line |
160 | 161 | IMAGE_DIR: build/arm-none-eabi |
161 | 162 |
|
162 | 163 | steps: |
@@ -212,9 +213,9 @@ jobs: |
212 | 213 | attestations: write |
213 | 214 | id-token: write |
214 | 215 | env: |
215 | | - # Image variant name is drawn from final `--dir` entry in file generation command line |
216 | 216 | IMAGE_NAME: ${{ needs.image-details.outputs.base-name }}-arm-none-eabi-plugins |
217 | 217 | IMAGE_URL: ${{ needs.image-details.outputs.base-url }}-arm-none-eabi-plugins |
| 218 | + # Image variant name is drawn from final `--dir` entry in file generation command line |
218 | 219 | IMAGE_DIR: build/arm-none-eabi-plugins |
219 | 220 |
|
220 | 221 | steps: |
@@ -268,10 +269,16 @@ jobs: |
268 | 269 | contents: write |
269 | 270 |
|
270 | 271 | steps: |
| 272 | + # Capture the SHA string |
| 273 | + - name: Git commit short SHA as environment variable |
| 274 | + shell: bash |
| 275 | + run: | |
| 276 | + echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV |
| 277 | +
|
271 | 278 | - uses: ncipollo/release-action@v1 |
272 | 279 | with: |
273 | 280 | prerelease: true |
274 | 281 | allowUpdates: true |
275 | | - tag: ${{ github.ref }} |
| 282 | + tag: ${{ env.SHA_SHORT }} |
276 | 283 | artifacts: "build/*/docker/Dockerfile,build/*/assets/shell/welcome" |
277 | 284 |
|
0 commit comments