File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments