Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ag-ohlberger
dune-community
dune-xt
Commits
48005af3
Unverified
Commit
48005af3
authored
5 years ago
by
René Fritze
Browse files
Options
Downloads
Patches
Plain Diff
[ci] try exporting codecov env into docker
parent
a2cae367
No related branches found
Branches containing commit
No related tags found
1 merge request
!5
Gitlab ci
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/gitlab/config.yml
+8
-2
8 additions, 2 deletions
.ci/gitlab/config.yml
.ci/gitlab/config_template.py
+8
-2
8 additions, 2 deletions
.ci/gitlab/config_template.py
with
16 additions
and
4 deletions
.ci/gitlab/config.yml
+
8
−
2
View file @
48005af3
...
...
@@ -33,15 +33,21 @@ variables:
DOCKER_DRIVER
:
overlay2
before_script
:
-
|
apk --update add openssh-client rsync git file bash python3
apk --update add openssh-client rsync git file bash python3 curl
curl -o /tmp/env https://raw.githubusercontent.com/codecov/codecov-bash/master/env
export ci_env=$(bash /tmp/env)
echo 999999999999999999999999999999999999999999999999999999999999
echo ${ci_env}
echo 999999999999999999999999999999999999999999999999999999999999
pip3 install -U docker jinja2 docopt
export BASEIMAGE="${MY_MODULE}-testing_${DOCKER_TAG}:${CI_COMMIT_REF_NAME/\//_}"
export IMAGE="dunecommunity/ci_${MY_MODULE}-testing_${DOCKER_TAG}:${CI_COMMIT_SHA}"
# get image with fallback to master branch of the super repo
docker pull dunecommunity/${BASEIMAGE} || export BASEIMAGE="${MY_MODULE}-testing_${DOCKER_TAG}:master" ; docker pull dunecommunity/${BASEIMAGE}
export ENV_FILE=${HOME}/env
mkdir ${CI_PROJECT_DIR}/testresults && chmod -R 777 ${CI_PROJECT_DIR}/testresults
DOCKER_RUN="docker run -v ${CI_PROJECT_DIR}/testresults:/home/dune-ci/testresults --env-file ${ENV_FILE} ${IMAGE}"
DOCKER_RUN="docker run -v ${CI_PROJECT_DIR}/testresults:/home/dune-ci/testresults --env-file ${ENV_FILE}
${ci_env}
${IMAGE}"
git submodule update --init --recursive
docker build --build-arg BASE=${BASEIMAGE} -t ${IMAGE} -f .ci/shared/docker/ci_run/Dockerfile .
script
:
...
...
This diff is collapsed.
Click to expand it.
.ci/gitlab/config_template.py
+
8
−
2
View file @
48005af3
...
...
@@ -36,15 +36,21 @@ variables:
DOCKER_DRIVER: overlay2
before_script:
- |
apk --update add openssh-client rsync git file bash python3
apk --update add openssh-client rsync git file bash python3 curl
curl -o /tmp/env https://raw.githubusercontent.com/codecov/codecov-bash/master/env
export ci_env=$(bash /tmp/env)
echo 999999999999999999999999999999999999999999999999999999999999
echo ${ci_env}
echo 999999999999999999999999999999999999999999999999999999999999
pip3 install -U docker jinja2 docopt
export BASEIMAGE=
"
${MY_MODULE}-testing_${DOCKER_TAG}:${CI_COMMIT_REF_NAME/\//_}
"
export IMAGE=
"
dunecommunity/ci_${MY_MODULE}-testing_${DOCKER_TAG}:${CI_COMMIT_SHA}
"
# get image with fallback to master branch of the super repo
docker pull dunecommunity/${BASEIMAGE} || export BASEIMAGE=
"
${MY_MODULE}-testing_${DOCKER_TAG}:master
"
; docker pull dunecommunity/${BASEIMAGE}
export ENV_FILE=${HOME}/env
mkdir ${CI_PROJECT_DIR}/testresults && chmod -R 777 ${CI_PROJECT_DIR}/testresults
DOCKER_RUN=
"
docker run -v ${CI_PROJECT_DIR}/testresults:/home/dune-ci/testresults --env-file ${ENV_FILE} ${IMAGE}
"
DOCKER_RUN=
"
docker run -v ${CI_PROJECT_DIR}/testresults:/home/dune-ci/testresults --env-file ${ENV_FILE}
${ci_env}
${IMAGE}
"
git submodule update --init --recursive
docker build --build-arg BASE=${BASEIMAGE} -t ${IMAGE} -f .ci/shared/docker/ci_run/Dockerfile .
script:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment