ci: zip artifact into eponymous directory.
ci: Fix condition to skip publish Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
17
.github/workflows/bake.yml
vendored
17
.github/workflows/bake.yml
vendored
@@ -50,14 +50,17 @@ on:
|
||||
type: string
|
||||
default: ${{vars.CI_PRINT_BAKE || false}}
|
||||
description: Print the computed receipe.
|
||||
artifact:
|
||||
type: string
|
||||
default: '{}'
|
||||
description: Map of targets to artifact files to upload
|
||||
fail_fast:
|
||||
type: boolean
|
||||
default: false
|
||||
description: Fail-fast for the underlying matrix.
|
||||
artifact:
|
||||
type: string
|
||||
default: '{}'
|
||||
description: >
|
||||
Map of targets to artifact files to upload. Key is bake target (image prefix),
|
||||
value is a JSON object containing keys 'src' and 'dst'. dst is the artifact name,
|
||||
src is optional path inside image, defaulting to dst.
|
||||
|
||||
jobs:
|
||||
bake:
|
||||
@@ -128,12 +131,12 @@ jobs:
|
||||
run: |
|
||||
cid=$(docker create "$iid" /)
|
||||
rm -rf _artifact
|
||||
mkdir -p _artifact
|
||||
docker cp "$cid:$src" "_artifact/$dst"
|
||||
mkdir -p _artifact/$dst/
|
||||
docker cp "$cid:$src" "_artifact/$dst/$dst"
|
||||
|
||||
- if: ${{ !failure() && !cancelled() && fromJSON(inputs.artifact)[matrix.bake_target].dst }}
|
||||
name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: _artifact/${{ fromJSON(inputs.artifact)[matrix.bake_target].dst }}
|
||||
name: ${{matrix.cargo_profile}}-${{matrix.feat_set}}-${{fromJSON(inputs.artifact)[matrix.bake_target].dst}}
|
||||
path: _artifact/${{fromJSON(inputs.artifact)[matrix.bake_target].dst}}
|
||||
|
||||
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@@ -48,7 +48,7 @@ jobs:
|
||||
${{
|
||||
!failure() && !cancelled()
|
||||
&& inputs.machines
|
||||
&& inputs.docker_repo
|
||||
&& inputs.docker_repo != ''
|
||||
&& github.ref == 'refs/heads/main'
|
||||
}}
|
||||
name: Publish containers
|
||||
|
||||
Reference in New Issue
Block a user