Commit ca6979b2 authored by Jonathan Mang's avatar Jonathan Mang :bulb:
Browse files

ci: sourced building process for new base_image out

Pipeline #26063 passed with stage
in 21 minutes and 1 second
Showing with 30 additions and 26 deletions
+30 -26
......@@ -16,4 +16,7 @@
!/build_image.sh
!/build_r_base_image.sh
!/build_r_dqa_base_image.sh
!/renovate.json
\ No newline at end of file
!/renovate.json
!/ci_templates/
/ci_templates/*
!/ci_templates/build_new_base_image.gitlab-ci.yml
\ No newline at end of file
.docker_registry:
before_script:
- echo ${REGISTRY_PASSWORD} | docker login -u ${REGISTRY_USERNAME} ${DOCKER_REGISTRY} --password-stdin
- git clone https://oauth2:${DQA_BASE_IMAGE_REPO_TOKEN}@gitlab.miracum.org/miracum/dqa/dqatool_deployment.git dqa_base_image
- cd dqa_base_image
after_script:
- docker logout ${DOCKER_REGISTRY}
build_new_base_image:
stage: get_base_image
image: docker:git
extends: .docker_registry
script:
## Note: We are in the repo 'dqa_base_image' here:
- chmod +x ./*.sh
- ls -al
- sh build_image.sh --dev ## Build a new 'development' image
- sh build_image.sh ## Build a new 'latest' image
only:
refs:
- master
- tags
\ No newline at end of file
include: './ci_templates/build_new_base_image.gitlab-ci.yml'
variables:
R_PKG_NAME: "my.package"
DOCKER_REGISTRY: "harbor.miracum.org"
......@@ -12,34 +14,10 @@ default:
- mkdir -p ci
stages:
- get_base_image
- get_base_image # from include above
- build
- deploy
.docker_registry:
before_script:
- echo ${REGISTRY_PASSWORD} | docker login -u ${REGISTRY_USERNAME} ${DOCKER_REGISTRY} --password-stdin
- git clone https://oauth2:${DQA_BASE_IMAGE_REPO_TOKEN}@gitlab.miracum.org/miracum/dqa/dqatool_deployment.git dqa_base_image
- cd dqa_base_image
after_script:
- docker logout ${DOCKER_REGISTRY}
build_new_base_image:
stage: get_base_image
image: docker:git
extends: .docker_registry
script:
## Note: We are in the repo 'dqa_base_image' here:
- chmod +x ./*.sh
- ls -al
- sh build_image.sh --dev ## Build a new 'development' image
- sh build_image.sh ## Build a new 'latest' image
only:
refs:
- master
- tags
check:
stage: build
allow_failure: true # necessary when having development-packages (in remotes-section of DESCRIPTION)
......
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