Merge pull request #876 from tonistiigi/fix-latest-tagging

hack: fix tagging latest images on release
docker-19.03
Sebastiaan van Stijn 2019-03-15 02:10:28 +01:00 committed by GitHub
commit a18c3d0dd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ imageDockerCommon() {
docker push $REPO:$TAG-rootless
set +x
fi
if [[ "gitTag" == "$TAG" ]]; then
if [[ "$gitTag" == "$TAG" ]]; then
set -x
docker tag $REPO:$TAG $REPO:latest
docker tag $REPO:$TAG-rootless $REPO:rootless
@ -71,7 +71,7 @@ image() {
tagLatest=""
tagLatestRootless=""
if [[ "gitTag" == "$TAG" ]]; then
if [[ "$gitTag" == "$TAG" ]]; then
tagLatest=",$REPO:latest"
tagLatestRootless=",$REPO:rootless"
fi