diff options
author | Joe Chen <jc@unknwon.io> | 2022-01-20 12:57:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 12:57:08 +0800 |
commit | 82e5fd018b2cfdcbc9573a55b2f6215b33c0db76 (patch) | |
tree | ddd3077c0d7b6e0850490499d37728a139689808 /docs/dev | |
parent | 2071eb634f33bb160ba86f79b2de06f122971279 (diff) |
docs: delete and re-create Docker manifest for release (#6739)
[skip ci]
Diffstat (limited to 'docs/dev')
-rw-r--r-- | docs/dev/release/release_new_version.md | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/docs/dev/release/release_new_version.md b/docs/dev/release/release_new_version.md index cb1a33e0..bedd44e5 100644 --- a/docs/dev/release/release_new_version.md +++ b/docs/dev/release/release_new_version.md @@ -8,33 +8,34 @@ ### Update Docker image tag 1. Pull down images and create a manifest: - ```sh - $ export VERSION=0.12.4 - $ export MINOR_RELEASE=0.12 + ```sh + $ export VERSION=0.12.4 + $ export MINOR_RELEASE=0.12 - $ docker pull --platform linux/amd64 gogs/gogs:${VERSION} - $ docker tag gogs/gogs:${VERSION} gogs/gogs:${MINOR_RELEASE}-amd64 - $ docker push gogs/gogs:${MINOR_RELEASE}-amd64 - $ docker pull --platform linux/arm64 gogs/gogs:${VERSION} - $ docker tag gogs/gogs:${VERSION} gogs/gogs:${MINOR_RELEASE}-arm64 - $ docker push gogs/gogs:${MINOR_RELEASE}-arm64 - $ docker pull --platform linux/arm/v7 gogs/gogs:${VERSION} - $ docker tag gogs/gogs:${VERSION} gogs/gogs:${MINOR_RELEASE}-armv7 - $ docker push gogs/gogs:${MINOR_RELEASE}-armv7 + $ docker pull --platform linux/amd64 gogs/gogs:${VERSION} + $ docker tag gogs/gogs:${VERSION} gogs/gogs:${MINOR_RELEASE}-amd64 + $ docker push gogs/gogs:${MINOR_RELEASE}-amd64 + $ docker pull --platform linux/arm64 gogs/gogs:${VERSION} + $ docker tag gogs/gogs:${VERSION} gogs/gogs:${MINOR_RELEASE}-arm64 + $ docker push gogs/gogs:${MINOR_RELEASE}-arm64 + $ docker pull --platform linux/arm/v7 gogs/gogs:${VERSION} + $ docker tag gogs/gogs:${VERSION} gogs/gogs:${MINOR_RELEASE}-armv7 + $ docker push gogs/gogs:${MINOR_RELEASE}-armv7 - $ docker manifest create \ - gogs/gogs:${MINOR_RELEASE} \ - --amend gogs/gogs:${MINOR_RELEASE}-amd64 \ - --amend gogs/gogs:${MINOR_RELEASE}-arm64 \ - --amend gogs/gogs:${MINOR_RELEASE}-armv7 - $ docker manifest push gogs/gogs:${MINOR_RELEASE} + $ docker manifest rm gogs/gogs:${MINOR_RELEASE} + $ docker manifest create \ + gogs/gogs:${MINOR_RELEASE} \ + gogs/gogs:${MINOR_RELEASE}-amd64 \ + gogs/gogs:${MINOR_RELEASE}-arm64 \ + gogs/gogs:${MINOR_RELEASE}-armv7 + $ docker manifest push gogs/gogs:${MINOR_RELEASE} - # Only push "linux/amd64" for now - $ echo ${GITHUB_CR_PAT} | docker login ghcr.io -u <USERNAME> --password-stdin - $ docker pull --platform linux/amd64 gogs/gogs:${VERSION} - $ docker tag gogs/gogs:${VERSION} ghcr.io/gogs/gogs:${MINOR_RELEASE} - $ docker push ghcr.io/gogs/gogs:${MINOR_RELEASE} - ``` + # Only push "linux/amd64" for now + $ echo ${GITHUB_CR_PAT} | docker login ghcr.io -u <USERNAME> --password-stdin + $ docker pull --platform linux/amd64 gogs/gogs:${VERSION} + $ docker tag gogs/gogs:${VERSION} ghcr.io/gogs/gogs:${MINOR_RELEASE} + $ docker push ghcr.io/gogs/gogs:${MINOR_RELEASE} + ``` 2. Delete ephemeral tags from the [Docker Hub](https://hub.docker.com/repository/docker/gogs/gogs/tags). ### Compile and pack binaries |