File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed
Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ jobs:
184184 id-token : write
185185 with :
186186 output : ${{ github.event_name != 'pull_request' && 'local' || 'cacheonly' }}
187+ artifact-name : build-output
187188 build-file : test/hello.Dockerfile
188189 build-sbom : true
189190 build-platforms : linux/amd64,linux/arm64
@@ -283,6 +284,7 @@ jobs:
283284 context : test
284285 target : hello-cross
285286 output : ${{ github.event_name != 'pull_request' && 'local' || 'cacheonly' }}
287+ artifact-name : bake-output
286288 bake-sbom : true
287289
288290 bake-local-verify :
Original file line number Diff line number Diff line change 1818 description : " Build output destination (one of cacheonly, registry, local)"
1919 default : ' cacheonly'
2020 required : false
21+ artifact-name :
22+ type : string
23+ description : " Name of the uploaded artifact (for local output)"
24+ required : false
25+ default : ' docker-github-builder-assets'
2126 envs :
2227 type : string
2328 description : " Environment variables to set"
@@ -117,15 +122,14 @@ env:
117122 DOCKER_ACTIONS_TOOLKIT_MODULE : " @docker/actions-toolkit@0.67.0"
118123 COSIGN_VERSION : " v3.0.2"
119124 LOCAL_EXPORT_DIR : " /tmp/buildx-output"
120- LOCAL_ARTIFACT_NAME : " docker-github-builder-assets"
121125
122126jobs :
123127 build :
124128 runs-on : ubuntu-latest
125129 outputs :
126130 cosign-version : ${{ env.COSIGN_VERSION }}
127131 cosign-verify-commands : ${{ steps.signing-attestation-manifests.outputs.verify-commands || steps.signing-local-artifacts.outputs.verify-commands }}
128- artifact-name : ${{ env.LOCAL_ARTIFACT_NAME }}
132+ artifact-name : ${{ inputs.artifact-name }}
129133 permissions :
130134 contents : read
131135 id-token : write # needed for signing the images with GitHub OIDC Token
@@ -440,6 +444,6 @@ jobs:
440444 if : ${{ inputs.output == 'local' }}
441445 uses : actions/upload-artifact@v5
442446 with :
443- name : ${{ env.LOCAL_ARTIFACT_NAME }}
447+ name : ${{ inputs.artifact-name }}
444448 path : ${{ env.LOCAL_EXPORT_DIR }}
445449 if-no-files-found : error
Original file line number Diff line number Diff line change 88 description : " Build output destination (one of cacheonly, registry, local)"
99 default : ' cacheonly'
1010 required : false
11+ artifact-name :
12+ type : string
13+ description : " Name of the uploaded artifact (for local output)"
14+ required : false
15+ default : ' docker-github-builder-assets'
1116 cache :
1217 type : boolean
1318 description : " Enable cache to GitHub Actions cache backend"
@@ -123,15 +128,14 @@ env:
123128 DOCKER_ACTIONS_TOOLKIT_MODULE : " @docker/actions-toolkit@0.67.0"
124129 COSIGN_VERSION : " v3.0.2"
125130 LOCAL_EXPORT_DIR : " /tmp/buildx-output"
126- LOCAL_ARTIFACT_NAME : " docker-github-builder-assets"
127131
128132jobs :
129133 build :
130134 runs-on : ubuntu-latest
131135 outputs :
132136 cosign-version : ${{ env.COSIGN_VERSION }}
133137 cosign-verify-commands : ${{ steps.signing-attestation-manifests.outputs.verify-commands || steps.signing-local-artifacts.outputs.verify-commands }}
134- artifact-name : ${{ env.LOCAL_ARTIFACT_NAME }}
138+ artifact-name : ${{ inputs.artifact-name }}
135139 permissions :
136140 contents : read
137141 id-token : write # needed for signing the images with GitHub OIDC Token
@@ -379,6 +383,6 @@ jobs:
379383 if : ${{ inputs.output == 'local' }}
380384 uses : actions/upload-artifact@v5
381385 with :
382- name : ${{ env.LOCAL_ARTIFACT_NAME }}
386+ name : ${{ inputs.artifact-name }}
383387 path : ${{ env.LOCAL_EXPORT_DIR }}
384388 if-no-files-found : error
You can’t perform that action at this time.
0 commit comments