Skip to content

Commit

Permalink
build multi-arch docker images linux/amd64,linux/arm64,linux/arm/v7
Browse files Browse the repository at this point in the history
  • Loading branch information
danbf committed Aug 3, 2021
1 parent a493996 commit 7c196d1
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

# 1. commit to bump the version and update the changelog/readme
# 2. tag that commit
# 3. use dist.sh to produce tar.gz for all platforms
# 3. use dist.sh to produce tar.gz for all platforms and docker push nsqio/nsq
# 4. upload *.tar.gz to bitly s3 bucket
# 5. docker push nsqio/nsq
# 6. push to nsqio/master
# 7. update the release metadata on github / upload the binaries there too
# 8. update nsqio/nsqio.github.io/_posts/2014-03-01-installing.md
# 9. send release announcement emails
# 10. update IRC channel topic
# 11. tweet
# 5. push to nsqio/master
# 6. update the release metadata on github / upload the binaries there too
# 7. update nsqio/nsqio.github.io/_posts/2014-03-01-installing.md
# 8. send release announcement emails
# 9. update IRC channel topic
# 10. tweet

set -e

Expand Down Expand Up @@ -42,8 +41,11 @@ for os in linux darwin freebsd windows; do
sudo rm -r $BUILD
done

docker build -t nsqio/nsq:v$version .
docker buildx create --name nsq
docker buildx use nsq
docker buildx build --tag nsqio/nsq:v$version . --platform linux/amd64,linux/arm64 --push
if [[ ! $version == *"-"* ]]; then
echo "Tagging nsqio/nsq:v$version as the latest release."
docker tag nsqio/nsq:v$version nsqio/nsq:latest
docker buildx build --tag nsqio/nsq:latest . --platform linux/amd64,linux/arm64 --push
fi
docker buildx rm nsq

0 comments on commit 7c196d1

Please sign in to comment.