forked from m13253/dns-over-https
-
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.
revised buildah script to use new buildah features
- Loading branch information
1 parent
8f73db3
commit e93fdff
Showing
5 changed files
with
9 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ doh-server/doh-server | |
.glide/ | ||
|
||
.idea/ | ||
notes-podman | ||
|
||
# tmp folder | ||
tmp/* | ||
|
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 |
---|---|---|
@@ -1,22 +1,11 @@ | ||
#! /bin/bash | ||
|
||
DTAG="2.2.8" | ||
# simple script that uses buildah multiarch build and then pushs resulting image | ||
# to docker hub | ||
# need to buildah login first | ||
|
||
declare -A image | ||
for arch in amd64 arm64 ; do | ||
buildah bud --override-arch $arch --iidfile iid Dockerfile.client | ||
image[$arch]=$(cat iid) | ||
done | ||
DTAG="2.2.12" | ||
|
||
buildah manifest create doh-client:$DTAG | ||
|
||
for arch in ${!image[@]} ; do | ||
flags= | ||
case $arch in | ||
arm64|aarch64) | ||
flags="--arch arm64 --variant v8" | ||
esac | ||
buildah manifest add doh-client:$DTAG $flags ${image[$arch]} | ||
done | ||
buildah bud --platform linux/amd64,linux/arm64 --manifest doh-client:$TAG ./Dockerfile.client | ||
|
||
buildah manifest push --all doh-client:$DTAG docker://buckaroogeek/doh-client:$DTAG |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.