mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-22 03:06:45 +00:00
reusable workflow to distribute multi-platform builds
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
ca877d9245
commit
e81e6c97d0
3 changed files with 658 additions and 0 deletions
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
|
@ -1539,3 +1539,23 @@ jobs:
|
|||
echo "::error::Should have failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
distribute:
|
||||
uses: ./.github/workflows/reusable-distribute-mp.yml
|
||||
with:
|
||||
push: false
|
||||
meta-image: user/app
|
||||
build-context: "{{defaultContext}}:test"
|
||||
build-file: multi.Dockerfile
|
||||
build-platforms: linux/amd64,linux/arm64
|
||||
|
||||
distribute-cache:
|
||||
uses: ./.github/workflows/reusable-distribute-mp.yml
|
||||
with:
|
||||
push: false
|
||||
cache: true
|
||||
cache-scope: multi
|
||||
meta-image: user/app
|
||||
build-context: "{{defaultContext}}:test"
|
||||
build-file: multi.Dockerfile
|
||||
build-platforms: linux/amd64,linux/arm64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue