Skip to content

Commit 9b083d5

Browse files
committed
ci: push latest-ubuntu tag
Signed-off-by: CrazyMax <[email protected]>
1 parent bc3666b commit 9b083d5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/buildkit.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,18 @@ jobs:
189189
tagSuffix="${tagSuffix}-${{ matrix.base }}"
190190
fi
191191
echo "TAG_SUFFIX=${tagSuffix}" >> $GITHUB_ENV
192-
if [[ $GITHUB_REF == refs/tags/v* ]] && [[ "${{ matrix.base }}" = "$DEFAULT_BASE" ]]; then
192+
if [[ $GITHUB_REF == refs/tags/v* ]]; then
193193
if [[ "${GITHUB_REF#refs/tags/}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
194+
tagLatest=""
194195
if [ -n "${{ matrix.target }}" ]; then
195-
echo "TAG_LATEST=${{ matrix.target }}" >> $GITHUB_ENV
196+
tagLatest=${{ matrix.target }}
196197
else
197-
echo "TAG_LATEST=latest" >> $GITHUB_ENV
198+
tagLatest=latest
198199
fi
200+
if [ "${{ matrix.base }}" != "$DEFAULT_BASE" ]; then
201+
tagLatest="${tagLatest}-${{ matrix.base }}"
202+
fi
203+
echo "TAG_LATEST=${tagLatest}" >> $GITHUB_ENV
199204
fi
200205
fi
201206
-
@@ -222,6 +227,7 @@ jobs:
222227
### moby/buildkit:v0.24.0-rootless
223228
### moby/buildkit:rootless
224229
### moby/buildkit:v0.24.0-ubuntu
230+
### moby/buildkit:latest-ubuntu
225231
## push semver prerelease tag v0.24.0-rc1
226232
### moby/buildkit:v0.24.0-rc1
227233
### moby/buildkit:v0.24.0-rc1-rootless

0 commit comments

Comments
 (0)