Skip to content

Commit 7c196d1

Browse files
committed
build multi-arch docker images linux/amd64,linux/arm64,linux/arm/v7
1 parent a493996 commit 7c196d1

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

dist.sh

+12-10
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

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

1514
set -e
1615

@@ -42,8 +41,11 @@ for os in linux darwin freebsd windows; do
4241
sudo rm -r $BUILD
4342
done
4443

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

0 commit comments

Comments
 (0)