add latest tag to release, add docker prefix
This commit is contained in:
@@ -16,6 +16,8 @@ UPLOAD_CREDENTIALS='anonymous:build'
|
|||||||
version=`cat ../../VERSION`
|
version=`cat ../../VERSION`
|
||||||
source='../..'
|
source='../..'
|
||||||
images='bullseye'
|
images='bullseye'
|
||||||
|
tagprefix=docker.io/john30/ebusd
|
||||||
|
extratag=
|
||||||
|
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
namesuffix=''
|
namesuffix=''
|
||||||
@@ -26,8 +28,9 @@ elif [[ "x$1" = "xrelease" ]]; then
|
|||||||
archs=linux/amd64
|
archs=linux/amd64
|
||||||
namesuffix='.release'
|
namesuffix='.release'
|
||||||
target=image
|
target=image
|
||||||
outputFmt='-o type=docker,type=registry'
|
outputFmt='-o type=registry'
|
||||||
tagsuffix=":v$version"
|
tagsuffix=":v$version"
|
||||||
|
extratag="-t $tagprefix:latest"
|
||||||
else
|
else
|
||||||
namesuffix='.build'
|
namesuffix='.build'
|
||||||
target=build
|
target=build
|
||||||
@@ -49,7 +52,8 @@ for image in $images; do
|
|||||||
--build-arg "UPLOAD_URL=$UPLOAD_URL" \
|
--build-arg "UPLOAD_URL=$UPLOAD_URL" \
|
||||||
--build-arg "UPLOAD_CREDENTIALS=$UPLOAD_CREDENTIALS" \
|
--build-arg "UPLOAD_CREDENTIALS=$UPLOAD_CREDENTIALS" \
|
||||||
--build-arg "UPLOAD_OS=$image" \
|
--build-arg "UPLOAD_OS=$image" \
|
||||||
-t ebusd$tagsuffix \
|
-t $tagprefix$tagsuffix \
|
||||||
|
$extratag \
|
||||||
$output \
|
$output \
|
||||||
$source
|
$source
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user