Commit f86e41e0 authored by Tobias Munk's avatar Tobias Munk

fixed deploy on tag

parent ca5c68ac
Pipeline #8611 passed with stages
......@@ -16,7 +16,7 @@ docker push "${IMAGE_NAME}":latest
# Create and push :<CURRENT_VERSION>
if [ "$LATEST_TAG" = "$CURRENT_VERSION" ]; then
echo "Stable tag $CURRENT_VERSION detected, tagging image..."
docker tag "${COMPOSE_PROJECT_NAME}_php" "${IMAGE_NAME}":"${CURRENT_VERSION}"
docker tag "local/phd/app:${BUILD_PREFIX}" "${IMAGE_NAME}":"${CURRENT_VERSION}"
docker push "${IMAGE_NAME}:${CURRENT_VERSION}"
echo "Image pushed to registry."
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment