Update docker-hub.yml
This commit is contained in:
parent
e4b6fcda62
commit
2d2378443e
@ -12,7 +12,6 @@ docker-hub-build:
|
|||||||
- docker push $CONTAINER_BUILD_NOPROD_NAME
|
- docker push $CONTAINER_BUILD_NOPROD_NAME
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
CONTAINER_PROD_IMAGE: $HUB_REGISTRY_IMAGE:$CI_COMMIT_BRANCH
|
|
||||||
CONTAINER_CLIENT_IMAGE: debian:buster
|
CONTAINER_CLIENT_IMAGE: debian:buster
|
||||||
CONTAINER_TEST_NAME: squid
|
CONTAINER_TEST_NAME: squid
|
||||||
CONTAINER_BUILD_NOPROD_NAME: $HUB_REGISTRY_IMAGE:build-noprod
|
CONTAINER_BUILD_NOPROD_NAME: $HUB_REGISTRY_IMAGE:build-noprod
|
||||||
@ -40,5 +39,11 @@ push-docker-hub:
|
|||||||
- docker login -u "$DOCKER_HUB_USER" -p "$DOCKER_HUB_TOKEN" $DOCKER_HUB_REGISTRY
|
- docker login -u "$DOCKER_HUB_USER" -p "$DOCKER_HUB_TOKEN" $DOCKER_HUB_REGISTRY
|
||||||
script:
|
script:
|
||||||
- docker pull $CONTAINER_BUILD_NOPROD_NAME
|
- docker pull $CONTAINER_BUILD_NOPROD_NAME
|
||||||
- docker tag $CONTAINER_BUILD_NOPROD_NAME $CONTAINER_PROD_IMAGE
|
- export VERSION=$(docker run -i --entrypoint "/bin/sh" $CONTAINER_BUILD_NOPROD_NAME -c env | grep SQUID_VERSION | cut -d'=' -f2)
|
||||||
- docker push $CONTAINER_PROD_IMAGE
|
- docker tag $CONTAINER_BUILD_NOPROD_NAME $HUB_REGISTRY_IMAGE:$VERSION
|
||||||
|
- docker push $HUB_REGISTRY_IMAGE:$VERSION
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: none
|
||||||
|
# Needed for escaping $"
|
||||||
|
SQUID_VERSION: '"$SQUID_VERSION"'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user