1
- name : " Docker CI (image releaser )"
1
+ name : " Docker CI (image release )"
2
2
3
3
env :
4
4
# Change this to match GITHUB_REPOSITORY or any name you want.
11
11
12
12
on :
13
13
release :
14
+ # After tagging a release from the command line, you need to create a new release
15
+ # for the releaser CI to trigger.
14
16
type : [published]
15
17
16
18
jobs :
@@ -31,17 +33,12 @@ jobs:
31
33
${{ env.namespace_dockerhub }}/${{ env.repository }}
32
34
quay.io/${{ env.namespace }}/${{ env.repository }}
33
35
ghcr.io/${{ env.namespace }}/${{ env.repository }}
36
+ # For prereleases, the tag name should be have a suffix, like -betaXX
34
37
tags : |
35
38
type=semver,pattern={{version}}
36
- type=raw,value=beta
37
39
flavor : |
38
40
latest=false
39
41
40
- - name : Print out values
41
- env :
42
- METADATA_OUTPUTS : ${{ toJSON(steps.meta.outputs) }}
43
- run : " echo '$METADATA_OUTPUTS'"
44
-
45
42
# Setup QEMU for multiarch builds
46
43
- name : Set up QEMU
47
44
uses : docker/setup-qemu-action@v1
62
59
uses : docker/login-action@v1
63
60
with :
64
61
registry : ghcr.io
65
- # change the username into yours if not using our bot
62
+ # change the username into yours if not using our bot, might use
63
+ # an env or secrets way in the future
66
64
username : RecapTimeBot
67
65
# you need to manually add our bot with write access if you use our PAT
68
66
password : ${{ secrets.GH_SERVICE_ACCOUNT_API_KEY }}
84
82
tags : ${{ steps.meta.outputs.tags }}
85
83
labels : ${{ steps.meta.outputs.labels }}
86
84
context : .
85
+ # arm64 can sometimes experience weird GnuTLS errors
87
86
platforms : linux/amd64
88
87
publish-to-stable :
89
88
name : Release to stable
@@ -103,14 +102,13 @@ jobs:
103
102
ghcr.io/${{ env.namespace }}/${{ env.repository }}
104
103
tags : |
105
104
type=semver,pattern={{version}}
105
+ # v0.2.x and above
106
+ type=semver,pattern={{major}}.{{minor}}
107
+ # disabled if major zero
108
+ type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
106
109
flavor : |
107
110
latest=true
108
111
109
- - name : Print out values
110
- env :
111
- METADATA_OUTPUTS : ${{ toJSON(steps.meta.outputs) }}
112
- run : " echo '$METADATA_OUTPUTS'"
113
-
114
112
# Setup QEMU for multiarch builds
115
113
- name : Set up QEMU
116
114
uses : docker/setup-qemu-action@v1
@@ -153,4 +151,5 @@ jobs:
153
151
tags : ${{ steps.meta.outputs.tags }}
154
152
labels : ${{ steps.meta.outputs.labels }}
155
153
context : .
156
- platforms : linux/amd64
154
+ # arm64 can sometimes experience weird GnuTLS errors
155
+ platforms : linux/amd64
0 commit comments