Add :latest tag to built image

This commit is contained in:
marcbal 2023-04-07 23:49:27 +02:00
parent 3be342aae2
commit e9b46f81b7

View File

@ -31,9 +31,11 @@ curl -L -o $RUNNABLE_JAR $DOWNLOAD_URL
DOCKER_TAG="cr.pandacube.fr/geyser:"$GEYSER_VERSION"-"$GEYSER_BUILD DOCKER_TAG="cr.pandacube.fr/geyser:"$GEYSER_VERSION"-"$GEYSER_BUILD
DOCKER_TAG_LATEST="cr.pandacube.fr/geyser:latest"
echo "Building docker image of Geyser Standalone "$DOCKER_TAG echo "Building docker image of Geyser Standalone "$DOCKER_TAG
docker build --build-arg RUNNABLE_JAR=$RUNNABLE_JAR -t $DOCKER_TAG . docker build --build-arg RUNNABLE_JAR=$RUNNABLE_JAR -t $DOCKER_TAG .
docker tag $DOCKER_TAG $DOCKER_TAG_LATEST
echo "Pushing image to Pandacubes container registry" echo "Pushing image to Pandacubes container registry"
docker push $DOCKER_TAG docker push $DOCKER_TAG
docker push $DOCKER_TAG_LATEST