Skip to content

Commit

Permalink
Move multi-arch validation to after main build
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Jan 24, 2025
1 parent 04cb66d commit 5d8226c
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ jobs:
with:
install: true

# @todo move after the build
- name: Build docker image (multi-arch validation)
uses: docker/build-push-action@v6
with:
target: production
tags: ghcr.io/roave/docbooktool:test-image
platforms: linux/amd64,linux/arm64
cache-from: type=gha,scope=ci-cache
cache-to: type=gha,mode=max,scope=ci-cache

- name: Build docker image
uses: docker/build-push-action@v6
with:
Expand All @@ -44,3 +34,12 @@ jobs:

- name: "PHPCS"
run: docker run --rm --entrypoint=php ghcr.io/roave/docbooktool:test-image vendor/bin/phpcs

- name: Build docker image (multi-arch validation)
uses: docker/build-push-action@v6
with:
target: production
tags: ghcr.io/roave/docbooktool:test-image
platforms: linux/amd64,linux/arm64
cache-from: type=gha,scope=ci-cache
cache-to: type=gha,mode=max,scope=ci-cache

0 comments on commit 5d8226c

Please sign in to comment.