98
98
- name : Build and Push with Buildx (for :next builds, 14d expiry)
99
99
uses : ./.github/actions/docker-build
100
100
id : build-next
101
- if : ${{ env.REF_NAME_SHORT == 'next' || env.REF_NAME_SHORT == 'next-'* }}
101
+ if : ${{ env.REF_NAME_SHORT == 'next' || startsWith( env.REF_NAME_SHORT, 'next-') }}
102
102
with :
103
103
registry : ${{ env.REGISTRY }}
104
104
username : ${{ secrets.QUAY_USERNAME }}
@@ -114,7 +114,7 @@ jobs:
114
114
- name : Build and Push with Buildx (for releases, 183d expiry)
115
115
uses : ./.github/actions/docker-build
116
116
id : build-release
117
- if : ${{ env.REF_NAME_SHORT != 'next' && env.REF_NAME_SHORT != 'next-'* }}
117
+ if : ${{ env.REF_NAME_SHORT != 'next' && !startsWith( env.REF_NAME_SHORT, 'next-') }}
118
118
with :
119
119
registry : ${{ env.REGISTRY }}
120
120
username : ${{ secrets.QUAY_USERNAME }}
@@ -129,15 +129,15 @@ jobs:
129
129
130
130
- name : Export digest (for :next builds)
131
131
id : export-digest-next
132
- if : ${{ env.REF_NAME_SHORT == 'next' || env.REF_NAME_SHORT == 'next-'* }}
132
+ if : ${{ env.REF_NAME_SHORT == 'next' || startsWith( env.REF_NAME_SHORT, 'next-') }}
133
133
run : |
134
134
mkdir -p /tmp/digests
135
135
digest="${{ steps.build-next.outputs.digest }}"
136
136
touch "/tmp/digests/${digest#sha256:}"
137
137
138
138
- name : Export digest (for releases)
139
139
id : export-digest-release
140
- if : ${{ env.REF_NAME_SHORT != 'next' && env.REF_NAME_SHORT != 'next-'* }}
140
+ if : ${{ env.REF_NAME_SHORT != 'next' && !startsWith( env.REF_NAME_SHORT, 'next-') }}
141
141
run : |
142
142
mkdir -p /tmp/digests
143
143
digest="${{ steps.build-release.outputs.digest }}"
@@ -190,7 +190,7 @@ jobs:
190
190
191
191
- name : Set container metadata (for :next builds, 14d expiry)
192
192
id : meta-next
193
- if : ${{ env.REF_NAME_SHORT == 'next' || env.REF_NAME_SHORT == 'next-'* }}
193
+ if : ${{ env.REF_NAME_SHORT == 'next' || startsWith( env.REF_NAME_SHORT, 'next-') }}
194
194
uses : docker/metadata-action@v5
195
195
with :
196
196
images : ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}
@@ -202,7 +202,7 @@ jobs:
202
202
203
203
- name : Set container metadata (for releases, 183d expiry)
204
204
id : meta-release
205
- if : ${{ env.REF_NAME_SHORT != 'next' && env.REF_NAME_SHORT != 'next-'* }}
205
+ if : ${{ env.REF_NAME_SHORT != 'next' && !startsWith( env.REF_NAME_SHORT, 'next-') }}
206
206
uses : docker/metadata-action@v5
207
207
with :
208
208
images : ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}
@@ -229,12 +229,12 @@ jobs:
229
229
230
230
- name : Inspect image (for :next builds)
231
231
id : inspect-next
232
- if : ${{ env.REF_NAME_SHORT == 'next' || env.REF_NAME_SHORT == 'next-'* }}
232
+ if : ${{ env.REF_NAME_SHORT == 'next' || startsWith( env.REF_NAME_SHORT, 'next-') }}
233
233
run : |
234
234
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}:${{ steps.meta-next.outputs.version }}
235
235
236
236
- name : Inspect image (for releases)
237
237
id : inspect-release
238
- if : ${{ env.REF_NAME_SHORT != 'next' && env.REF_NAME_SHORT != 'next-'* }}
238
+ if : ${{ env.REF_NAME_SHORT != 'next' && !startsWith( env.REF_NAME_SHORT, 'next-') }}
239
239
run : |
240
240
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}:${{ steps.meta-release.outputs.version }}
0 commit comments