File tree 5 files changed +28
-29
lines changed
5 files changed +28
-29
lines changed Original file line number Diff line number Diff line change 4
4
inputs :
5
5
# N.B.: This behavior is not concurrency-safe and updates the mutable
6
6
# :latest image tag
7
- push-latest :
7
+ allow- push-latest :
8
8
type : boolean
9
9
primary-registry-tag :
10
10
type : string
28
28
registry : ghcr.io
29
29
username : ${{ github.repository_owner }}
30
30
password : ${{ github.token }}
31
+ - name : Calculate highest version number from Git tags
32
+ if : inputs.allow-push-latest
33
+ run : echo "MOST_RECENT_TAG=$(git tag | sort --version-sort | tail -n1)" >> $GITHUB_ENV
31
34
- name : Set PUSH_LATEST_TAG in environment
32
- if : inputs.push-latest
35
+ if : inputs.allow- push-latest && github.ref_name == env.MOST_RECENT_TAG
33
36
run : echo "PUSH_LATEST_TAG=1" >> $GITHUB_ENV
34
37
- name : Set REGISTRY_TAG in environment
35
38
if : inputs.primary-registry-tag != ''
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ name: Publish Docker Image to GHCR (versioned + :latest)
3
3
4
4
on :
5
5
push :
6
- branches :
7
- - main
6
+ tags :
7
+ - ' * '
8
8
9
9
jobs :
10
10
multiarch-image :
11
11
uses : ./.github/workflows/build-and-push-ghcr-common.yml
12
12
secrets : inherit
13
13
with :
14
- push-latest-tag : true
14
+ allow- push-latest-tag : true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
5
5
This is a container image for running [ Zulip] ( https://zulip.com )
6
6
([ GitHub] ( https://github.com/zulip/zulip ) ) in
7
- [ production] [ prod-overview ] . Image available from:
7
+ [ production] [ prod-overview ] .
8
8
9
- - [ ** Docker Hub** ] ( https://hub.docker.com/r/zulip/docker-zulip ) (` docker pull zulip/docker-zulip:6.1-0 ` )
10
9
11
- Current Zulip version: ` 6.1 `
12
- Current Docker image version: ` 6.1-0 `
13
- Current architectures supported: ` amd64 `
10
+ ``` sh
11
+ docker pull ghcr.io/zulip/zulip
14
12
15
- <!-- Remove when https://github.com/zulip/docker-zulip/issues/357 resolved -->
16
- > ` arm64 ` support is experimental, and is not provided in the Docker Hub
17
- > images. To build an ` arm64 ` image yourself, see ` make help ` locally.
13
+ # Or, pin a version:
14
+ docker pull ghcr.io/zulip/zulip:6.1-1
15
+ ```
16
+
17
+ - Current Zulip Server version: ` 6.1 `
18
+ - Current Docker image version: ` 6.1-1 `
19
+ - Current architectures supported: ` amd64 ` , ` arm64 `
20
+
21
+ See all available image tags [ in GitHub Container
22
+ Registry] ( https://github.com/orgs/zulip/packages/container/package/zulip ) .
18
23
19
24
Project status: ** Alpha** . While these images work and are used by many sites
20
25
in production, configuring is substantially more error-prone than the [ bare
Original file line number Diff line number Diff line change 43
43
set -ex
44
44
45
45
REGISTRY=" ${REGISTRY:- ghcr.io/ zulip/ zulip} "
46
- REGISTRY_TAG=" ${REGISTRY_TAG:- $(tail -n 1 < " $( git rev-parse --show-toplevel) /IMAGE_TAG" )} "
46
+ REGISTRY_TAG=" ${REGISTRY_TAG:- ${GITHUB_REF_NAME} } "
47
+
48
+ if [ -z " ${REGISTRY_TAG} " ]; then
49
+ echo " REGISTRY_TAG must be set in environment (default is \$ GITHUB_REF_NAME, also from environment)" > /dev/stderr
50
+ exit 1
51
+ fi
52
+
47
53
PRIMARY_IMAGE=" ${REGISTRY} :${REGISTRY_TAG} "
48
54
49
55
if [ " ${SKIP_PULL_CHECK} " != " 1" ]; then
You can’t perform that action at this time.
0 commit comments