forked from adobe/buildrunner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request adobe#66 from shanejbrown/main
Add inject dockerfile support for multiplatform images and test for mp image reuse in other steps.
- Loading branch information
Showing
8 changed files
with
77 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Tests that a failure to pull an image results in a failure. | ||
steps: | ||
use-bogus-image: | ||
run: | ||
image: user1/buildrunner-test-multi-platform:bogus | ||
cmd: echo "Hello World" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Test to ensure that subsequent steps can use the recently built image | ||
steps: | ||
build-container-multi-platform: | ||
build: | ||
dockerfile: | | ||
FROM {{ DOCKER_REGISTRY }}/busybox | ||
platforms: | ||
- linux/amd64 | ||
- linux/arm64/v8 | ||
push: | ||
repository: user1/buildrunner-test-multi-platform | ||
tags: [ 'latest', '0.0.1' ] | ||
run: | ||
image: user1/buildrunner-test-multi-platform:0.0.1 | ||
cmd: echo "Hello World" | ||
|
||
use-built-image: | ||
run: | ||
image: user1/buildrunner-test-multi-platform:0.0.1 | ||
cmd: echo "Hello World" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters