docs: update release playbook for ARMv7 (#6792)

[skip ci]
pull/6797/head
Joe Chen 2022-03-02 18:49:16 +08:00 committed by GitHub
parent 8f6c4341f7
commit ed81fc5a01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 9 deletions

View File

@ -53,18 +53,17 @@ All commands are starting at the repository root.
$ TAGS="cert pam" task release $ TAGS="cert pam" task release
# Produce the Tarball # Produce the Tarball
$ export VERSION=0.12.4 $ export VERSION=0.12.4
$ cd release && tar czf gogs_${VERSION}_linux_$(go env GOARCH).tar.gz gogs $ cd release && tar czf gogs_${VERSION}_linux_$(go env GOARCH).tar.gz gogs
``` ```
- ARMv7: - ARMv7:
```sh ```sh
# Extract the binary from the Docker image # Produce the ZIP archive
$ docker pull --platform linux/arm/v7 gogs/gogs:${VERSION} $ TAGS="cert pam" task release
$ docker run \
--platform linux/arm/v7 \ # Produce the Tarball
-v ${PWD}:/opt/mount/ \ $ export VERSION=0.12.4
gogs/gogs:${VERSION} \ $ cd release && tar czf gogs_${VERSION}_linux_armv7.tar.gz gogs
bash -c "cp /app/gogs/gogs /opt/mount/"
``` ```
- ARMv8: - ARMv8:
```sh ```sh
@ -72,7 +71,7 @@ All commands are starting at the repository root.
$ TAGS="cert pam" task release $ TAGS="cert pam" task release
# Produce the Tarball # Produce the Tarball
$ export VERSION=0.12.4 $ export VERSION=0.12.4
$ cd release && tar czf gogs_${VERSION}_linux_armv8.tar.gz gogs $ cd release && tar czf gogs_${VERSION}_linux_armv8.tar.gz gogs
``` ```
- Windows: - Windows: