Update docker-hub.yml

This commit is contained in:
Fred 2021-04-27 19:53:39 +00:00
parent 2f99f08a9b
commit cea8cd98a1

View File

@ -39,7 +39,7 @@ push-docker-hub:
- docker login -u "$DOCKER_HUB_USER" -p "$DOCKER_HUB_TOKEN" $DOCKER_HUB_REGISTRY
script:
- docker pull $CONTAINER_BUILD_NOPROD_NAME
- export VERSION=$(docker run -i --entrypoint "/bin/sh" $CONTAINER_BUILD_NOPROD_NAME -c env | grep SQUID_VERSION | cut -d'=' -f2)
- export VERSION=$(docker run -i --entrypoint "/bin/sh" $CONTAINER_BUILD_NOPROD_NAME -c env | grep EN_SQUID_VERSION | cut -d'=' -f2)
- docker tag $CONTAINER_BUILD_NOPROD_NAME $HUB_REGISTRY_IMAGE:$VERSION
- docker push $HUB_REGISTRY_IMAGE:$VERSION
variables: