mirror of
https://github.com/mkuf/prind.git
synced 2026-05-07 19:56:49 +02:00
Use latest as docker tag to be compatible with docker defaults.
Keeps the `nightly` tag for compatibility with previous versions of prind.
This commit is contained in:
@@ -33,16 +33,17 @@ for target in $(grep "FROM .* as" ${dockerfile} | sed -r 's/.*FROM.*as (.*)/\1/g
|
||||
tag_extra="-${target}"
|
||||
fi
|
||||
|
||||
## Nightly
|
||||
## latest
|
||||
if docker manifest inspect ${registry}${app}:${shortref}${tag_extra} > /dev/null; then
|
||||
log "## Image ${registry}${app}:${shortref}${tag_extra} already exists, nothing to do."
|
||||
else
|
||||
log "## Building nightly Image ${registry}${app}:${shortref}${tag_extra}"
|
||||
log "## Building latest Image ${registry}${app}:${shortref}${tag_extra}"
|
||||
docker buildx build \
|
||||
--build-arg VERSION=${ref} \
|
||||
--platform ${platform} \
|
||||
--tag ${registry}${app}:${shortref}${tag_extra} \
|
||||
--tag ${registry}${app}:nightly${tag_extra} \
|
||||
--tag ${registry}${app}:latest${tag_extra} \
|
||||
--target ${target} \
|
||||
--push \
|
||||
${context}
|
||||
|
||||
Reference in New Issue
Block a user