forked from quarkus-qe/quarkus-test-suite
-
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.
Allow wait container to run on different architectures
- Add a script to generate an image for x86, ARM, IBM P and IBM Z - Enable back the tests on the new architectures Fixes quarkus-qe#2071 (cherry picked from commit 4ee70ab)
- Loading branch information
Showing
2 changed files
with
15 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# based on these guides: https://blog.while-true-do.io/podman-multi-arch-images/ and https://community.ibm.com/community/user/powerdeveloper/blogs/mayur-waghmode/2022/09/19/building-multi-arch-container-images-with-github-a | ||
|
||
set -euxo pipefail | ||
|
||
version=${1} | ||
if [ -z "$version" ]; then | ||
echo "Provide version for https://quay.io/repository/quarkusqeteam/wait container!" | ||
exit 1 | ||
fi | ||
TAG="quay.io/quarkusqeteam/wait:$version" | ||
podman manifest create $TAG | ||
podman build . --platform linux/amd64,linux/arm64,linux/ppc64le,linux/s390x --manifest $TAG --file Dockerfile | ||
podman manifest push $TAG |