Fix push docker hub

This commit is contained in:
fredbcode 2021-04-28 09:48:30 +02:00
parent 7704da704a
commit e04aafa368

View File

@ -38,6 +38,7 @@ push-docker-hub:
before_script:
- docker login -u "$DOCKER_HUB_USER" -p "$DOCKER_HUB_TOKEN" $DOCKER_HUB_REGISTRY
script:
- apk add --no-cache curl
- docker pull $CONTAINER_BUILD_NOPROD_NAME
- export SQUID_VERSION=$(curl -s http://www.squid-cache.org/Versions/v4/ | egrep -m 1 -oh squid-.*.tar.gz | cut -d '"' -f1)
- docker tag $CONTAINER_BUILD_NOPROD_NAME $HUB_REGISTRY_IMAGE:$SQUID_VERSION