Skip to content

Commit eb23705

Browse files
committed
feat: release multi-arch images under main tags
1 parent 992aa59 commit eb23705

File tree

2 files changed

+5
-25
lines changed

2 files changed

+5
-25
lines changed

Diff for: README.md

+2-14
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,14 @@ If you want to run the container as a standalone instance, then the `dius/pact-b
3535

3636
## Platforms
3737

38-
### Single platform images
39-
40-
By default, vanilla tags, are built only for `amd64`
41-
42-
- `--platform=linux/amd64`
43-
44-
```sh
45-
docker run --rm -it --entrypoint /bin/sh pactfoundation/pact-broker:latest -c 'uname -sm'
46-
```
47-
48-
### Multi-manifest image
49-
50-
Multi-platform images are available, by appending `-multi` to any release tag
38+
Multi-platform images are available
5139

5240
- `--platform=linux/amd64`
5341
- `--platform=linux/arm/v7`
5442
- `--platform=linux/arm64`
5543

5644
```sh
57-
docker run --rm -it --entrypoint /bin/sh pactfoundation/pact-broker:latest-multi -c 'uname -sm'
45+
docker run --rm -it --entrypoint /bin/sh pactfoundation/pact-broker:latest -c 'uname -sm'
5846
```
5947

6048
## Prerequisites

Diff for: script/release-workflow/docker-push.sh

+3-11
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,21 @@
22

33
set -euo >/dev/null
44

5-
## Publish a multi arch build with -multi added to the tag
6-
## ($TAG||$MAJOR_TAG||$LATEST)-multi
7-
push_multi() {
5+
## Publish a multi arch build
6+
## ($TAG||$MAJOR_TAG||$LATEST)
7+
push() {
88
## These will use cached builds, so wont build every time.
99
docker buildx build --platform=linux/amd64,linux/arm64,linux/arm \
10-
--output=type=image,push=true \
11-
-t ${DOCKER_IMAGE_ORG_AND_NAME}:$1-multi .
12-
}
13-
push() {
14-
docker buildx build --platform=linux/amd64 \
1510
--output=type=image,push=true \
1611
-t ${DOCKER_IMAGE_ORG_AND_NAME}:$1 .
1712
}
1813

1914
if [ -n "${MAJOR_TAG:-}" ]; then
2015
push ${MAJOR_TAG}
21-
push_multi ${MAJOR_TAG}
2216
fi
2317

2418
push ${TAG}
25-
push_multi ${TAG}
2619

2720
if [ "${PUSH_TO_LATEST}" != "false" ]; then
2821
push latest
29-
push_multi latest
3022
fi

0 commit comments

Comments
 (0)