Skip to content

Commit

Permalink
Fix Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tchapi committed Mar 10, 2024
1 parent b5572d8 commit 331d95e
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/main.yml
Expand Up @@ -18,14 +18,17 @@ jobs:
strategy:
fail-fast: false
matrix:
image:
- davis
- davis-standalone
platform:
- linux/amd64
- linux/arm64
include:
- dockerfile: docker/Dockerfile
image: davis
- dockerfile: docker/Dockerfile-standalone
image: davis-standalone
- image: davis
dockerfile: docker/Dockerfile
- image: davis-standalone
dockerfile: docker/Dockerfile-standalone
steps:
-
name: Prepare
Expand Down Expand Up @@ -77,15 +80,15 @@ jobs:
-
name: Export digest
run: |
mkdir -p /tmp/digests
mkdir -p /tmp/digests/${{ matrix.image }}
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
touch "/tmp/digests/${{ matrix.image }}/${digest#sha256:}"
-
name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
path: /tmp/digests/${{ matrix.image }}/*
if-no-files-found: error
retention-days: 1

Expand All @@ -109,7 +112,7 @@ jobs:
name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
path: /tmp/digests/${{ matrix.image }}
pattern: digests-*
merge-multiple: true
-
Expand Down Expand Up @@ -139,7 +142,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Create manifest list and push
working-directory: /tmp/digests
working-directory: /tmp/digests/${{ matrix.image }}
run: |
docker buildx imagetools create \
$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
Expand Down

0 comments on commit 331d95e

Please sign in to comment.