You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
707 B
Bash
19 lines
707 B
Bash
# update a docker image with remote docker deamon (ssh) (pull/tag/push)
|
|
###########################################################################
|
|
# update-docker-image.sh <stage> <source_group> <destination_group> <image_name> <image_version>
|
|
###########################################################################
|
|
# update-docker-image.sh dev smardigo smardigo keycloak 12.0.4.2
|
|
# update-docker-image.sh qa smardigo smardigo connect-whitelabel-app latest
|
|
# update-docker-image.sh qa smardigo sensw sensw-app latest
|
|
|
|
FROM="docker.dev-at.de/$2/$4:$5"
|
|
TO="$1-harbor-01.smardigo.digital/$3/$4:$5"
|
|
|
|
echo
|
|
echo updating $TO with image from $FROM
|
|
echo
|
|
|
|
docker pull $FROM
|
|
docker tag $FROM $TO
|
|
docker push $TO
|