Commit 866bdddf authored by David Mendez's avatar David Mendez
Browse files

CI: loging into dependency proxy

parent 82a81661
...@@ -42,7 +42,7 @@ stages: ...@@ -42,7 +42,7 @@ stages:
# ---------------------------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------------------------
build_docker_image_server: build_docker_image_server:
image: image:
name: docker/compose:1.24.1 name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/docker/compose:1.24.1
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
stage: build stage: build
variables: variables:
...@@ -56,7 +56,7 @@ build_docker_image_server: ...@@ -56,7 +56,7 @@ build_docker_image_server:
script: script:
- set -x - set -x
- docker version # verify docker cli is there. Also prints server info - docker version # verify docker cli is there. Also prints server info
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY - echo ${CI_DEPENDENCY_PROXY_PASSWORD} | docker login -u ${CI_DEPENDENCY_PROXY_USER} --password-stdin ${CI_DEPENDENCY_PROXY_SERVER}
- echo $DOCKERHUB_REGISTRY_PASSWORD | docker login -u $DOCKERHUB_REGISTRY_USER --password-stdin $DOCKERHUB_REGISTRY - echo $DOCKERHUB_REGISTRY_PASSWORD | docker login -u $DOCKERHUB_REGISTRY_USER --password-stdin $DOCKERHUB_REGISTRY
- echo building $SERVER_IMAGE_TAG - echo building $SERVER_IMAGE_TAG
- docker-compose build delayed-jobs-server-prod - docker-compose build delayed-jobs-server-prod
...@@ -84,7 +84,7 @@ pylint: ...@@ -84,7 +84,7 @@ pylint:
prepare_config_tests: prepare_config_tests:
stage: prepare_config_tests stage: prepare_config_tests
image: image:
name: alpine/git name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/alpine/git
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
except: except:
- schedules - schedules
...@@ -114,7 +114,7 @@ unit_tests: ...@@ -114,7 +114,7 @@ unit_tests:
prepare_config_staging: prepare_config_staging:
stage: prepare_config_staging stage: prepare_config_staging
image: image:
name: alpine/git name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/alpine/git
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
only: only:
- staging - staging
...@@ -135,7 +135,7 @@ prepare_config_staging: ...@@ -135,7 +135,7 @@ prepare_config_staging:
deploy_to_staging: deploy_to_staging:
stage: deploy_to_staging stage: deploy_to_staging
image: image:
name: lachlanevenson/k8s-kubectl:latest name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/lachlanevenson/k8s-kubectl:latest
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
only: only:
- staging - staging
...@@ -204,7 +204,7 @@ functional_tests_staging: ...@@ -204,7 +204,7 @@ functional_tests_staging:
prepare_config_prod_hx: prepare_config_prod_hx:
stage: prepare_config_hx_hh stage: prepare_config_hx_hh
image: image:
name: alpine/git name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/alpine/git
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
only: only:
- master - master
...@@ -224,7 +224,7 @@ prepare_config_prod_hx: ...@@ -224,7 +224,7 @@ prepare_config_prod_hx:
deploy_to_prod_hx: deploy_to_prod_hx:
stage: deploy_to_prod_hx_hh stage: deploy_to_prod_hx_hh
image: image:
name: lachlanevenson/k8s-kubectl:latest name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/lachlanevenson/k8s-kubectl:latest
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
only: only:
- master - master
...@@ -285,7 +285,7 @@ functional_tests_prod_hx: ...@@ -285,7 +285,7 @@ functional_tests_prod_hx:
prepare_config_prod_hh: prepare_config_prod_hh:
stage: prepare_config_hx_hh stage: prepare_config_hx_hh
image: image:
name: alpine/git name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/alpine/git
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
only: only:
- master - master
...@@ -305,7 +305,7 @@ prepare_config_prod_hh: ...@@ -305,7 +305,7 @@ prepare_config_prod_hh:
deploy_to_prod_hh: deploy_to_prod_hh:
stage: deploy_to_prod_hx_hh stage: deploy_to_prod_hx_hh
image: image:
name: lachlanevenson/k8s-kubectl:latest name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/lachlanevenson/k8s-kubectl:latest
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
only: only:
- master - master
...@@ -381,7 +381,7 @@ functional_tests_prod_public: ...@@ -381,7 +381,7 @@ functional_tests_prod_public:
# ---------------------------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------------------------
delete_expired_jobs: delete_expired_jobs:
stage: schedules stage: schedules
image: 'python:3.7' image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/python:3.7
only: only:
- schedules - schedules
script: script:
......
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