Skip to content

Commit

Permalink
Fix Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tchapi committed Mar 22, 2024
1 parent b5572d8 commit eaac75f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
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,14 +80,14 @@ jobs:
-
name: Export digest
run: |
mkdir -p /tmp/digests
mkdir -p /tmp/digests/
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
-
name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ env.PLATFORM_PAIR }}
name: digests-${{ matrix.image }}_${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand All @@ -109,8 +112,8 @@ jobs:
name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digests-*
path: /tmp/digests/${{ matrix.image }}/
pattern: digests-${{ matrix.image }}_*
merge-multiple: true
-
name: Set up Docker Buildx
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
1 change: 0 additions & 1 deletion docker/Dockerfile-standalone
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ RUN sed -i 's/listen = 9000/listen = \/var\/run\/php-fpm\/php-fpm.sock/' /usr/lo

# Cleanup (only useful when using --squash)
RUN docker-php-source delete && \
rm -rf /usr/local/bin/composer && \
rm -rf /var/www/davis/docker

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
Expand Down

0 comments on commit eaac75f

Please sign in to comment.