Commit f721b212 authored by EKbfh's avatar EKbfh 🐼

Remove old proxy

parent 27368802
variables:
PROXY: http://192.168.60.21:3128
S3_BASE: https://s3.getnoc.com
S3_BUCKET: tower
......@@ -58,7 +57,7 @@ build_image_debian:
- export CONTAINER_NAME=${CI_REGISTRY_IMAGE}:${CI_BUILD_REF_NAME}
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker build --build-arg="http_proxy=$PROXY" --build-arg="https_proxy=$PROXY" -t $CONTAINER_NAME .
- docker build -t $CONTAINER_NAME .
- docker push $CONTAINER_NAME
- if [ -n "${CI_BUILD_TAG}" ]; then docker tag $CONTAINER_NAME ${CI_REGISTRY_IMAGE}:${CI_BUILD_TAG}; docker push $CI_REGISTRY_IMAGE:${CI_BUILD_TAG}; fi
- if [ -n "${CI_BUILD_TAG}" ]; then docker tag $CONTAINER_NAME ${CI_REGISTRY_IMAGE}:latest; docker push ${CI_REGISTRY_IMAGE}:latest; fi
......@@ -75,7 +74,7 @@ build_image_alpine:
- export CONTAINER_NAME=${CI_REGISTRY_IMAGE}:${CI_BUILD_REF_NAME}_alpine
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker build --build-arg="http_proxy=$PROXY" --build-arg="https_proxy=$PROXY" -t $CONTAINER_NAME -f Dockerfile.alpine .
- docker build -t $CONTAINER_NAME -f Dockerfile.alpine .
- docker push $CONTAINER_NAME
- if [ -n "${CI_BUILD_TAG}" ]; then docker tag $CONTAINER_NAME ${CI_REGISTRY_IMAGE}:${CI_BUILD_TAG}_alpine; docker push $CI_REGISTRY_IMAGE:${CI_BUILD_TAG}_alpine; fi
- if [ -n "${CI_BUILD_TAG}" ]; then docker tag $CONTAINER_NAME ${CI_REGISTRY_IMAGE}:alpine; docker push ${CI_REGISTRY_IMAGE}:alpine; fi
......
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