Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MIRACUM
dqa
dqa_base_image
Commits
ca6979b2
Commit
ca6979b2
authored
3 years ago
by
Jonathan Mang
Browse files
Options
Download
Email Patches
Plain Diff
ci: sourced building process for new base_image out
parent
4402c878
master
development
Pipeline
#26063
passed with stage
in 21 minutes and 1 second
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+4
-1
.gitignore
ci_templates/build_new_base_image.gitlab-ci.yml
+23
-0
ci_templates/build_new_base_image.gitlab-ci.yml
importable.gitlab-ci.yml
+3
-25
importable.gitlab-ci.yml
with
30 additions
and
26 deletions
+30
-26
.gitignore
+
4
-
1
View file @
ca6979b2
...
...
@@ -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
This diff is collapsed.
Click to expand it.
ci_templates/build_new_base_image.gitlab-ci.yml
0 → 100644
+
23
-
0
View file @
ca6979b2
.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
This diff is collapsed.
Click to expand it.
importable.gitlab-ci.yml
+
3
-
25
View file @
ca6979b2
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)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help