Skip to content
Snippets Groups Projects
Commit 04a1dd0e authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-205: Push remote images to local registry

parent 0475eb7d
No related branches found
No related tags found
1 merge request!183Docker image building & pushing with CI pipeline caching
...@@ -97,7 +97,7 @@ stages: ...@@ -97,7 +97,7 @@ stages:
# script: # script:
# - cd tangostationcontrol # - cd tangostationcontrol
# - python setup.py bdist_wheel # - python setup.py bdist_wheel
docker_images: docker_store_images:
stage: images stage: images
image: docker:latest image: docker:latest
tags: tags:
...@@ -107,12 +107,16 @@ docker_images: ...@@ -107,12 +107,16 @@ docker_images:
variables: variables:
DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_CERTDIR: "/certs"
before_script: before_script:
- apk add --update make bash docker-compose # - apk add --update make bash docker-compose
- apk add --update bind-tools # - apk add --update bind-tools
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script: script:
- touch /root/.Xauthority - touch /root/.Xauthority
# Hack BASH_SOURCE into sourced files, docker its sh shell won't set this # Hack BASH_SOURCE into sourced files, docker its sh shell won't set this
- export BASH_SOURCE=$(pwd)/bootstrap/etc/lofar20rc.sh - export BASH_SOURCE=$(pwd)/bootstrap/etc/lofar20rc.sh
- cd docker-compose # source the lofarrc file and mask its non zero exit code
- make pull - . bootstrap/etc/lofar20rc.sh || true
# Allow docker image script test to execute
- chmod u+x $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh
# Do not remove 'bash' or statement will be ignored by primitive docker shell
- bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment