Skip to content

Commit

Permalink
Simplify artifact download
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <[email protected]>
  • Loading branch information
yubiuser committed Jan 3, 2024
1 parent 80d22b2 commit ad42c3a
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/ftl-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,22 @@ jobs:
include:
- platform: linux/amd64
container: alpine:3.18
platform_dir: linux-amd64
- platform: linux/386
container: alpine:3.18
platform_dir: linux-386
- platform: linux/arm/v6
container: alpine:3.18
platform_dir: linux-arm-v6
- platform: linux/arm/v7
container: alpine:3.18
platform_dir: linux-arm-v7
- platform: linux/arm64/v8
container: alpine:3.18
platform_dir: linux-arm-v8
- platform: linux/riscv64
container: alpine:edge
platform_dir: linux-riscv64
steps:
- name: Prepare name for digest up/download
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
-
name: Checkout Repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -137,7 +136,7 @@ jobs:
if: github.event_name != 'pull_request'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform_dir}}
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand All @@ -157,14 +156,11 @@ jobs:
-
name: Download digests
uses: actions/download-artifact@v4
id: download
with:
path: /tmp/download
-
name: Copy all artifacts from sub-directories to /tmp/digests
run: |
mkdir /tmp/digests
cp ${{steps.download.outputs.download-path}}/**/* /tmp/digests
path: /tmp/digests
pattern: digests-*
merge-multiple: true

-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit ad42c3a

Please sign in to comment.