Last active
November 3, 2018 14:18
-
-
Save imdurgadas/a8669bfaf026ac9e1116fdfccc71e34a to your computer and use it in GitHub Desktop.
Build and Publish
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
#get-base-image method is mentioned in https://gist.github.com/imdurgadas/755f4f86bc48cd51177413bf877e7869 | |
REGISTRY="docker-org-name" | |
IMAGE="docker-image-name" | |
publish() { | |
local version=$1 | |
local tag="${version}" | |
for arch in ${ARCHS[*]}; do | |
get-base-image "$arch" | |
docker build --file "Dockerfile-$arch" \ | |
--tag "$REGISTRY/$IMAGE:${tag}-${arch}" . | |
docker push "$REGISTRY/$IMAGE:${tag}-${arch}" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment