Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BioSP
ShinyMapCovid19
Commits
9accb730
Commit
9accb730
authored
Jul 17, 2020
by
Jean-Francois Rey
☕
Browse files
try to use cache between mergeData and buildDocker
parent
71b84763
Changes
1
Pipelines
12
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
9accb730
...
...
@@ -71,10 +71,10 @@ mergeData:
script
:
-
'
cd
R
&&
Rscript
main_forecast_plotly.R
"merge"'
-
"
curl
--request
POST
--form
token=$TRIGGERTOKEN
--form
ref=master
https://gitlab.paca.inrae.fr/api/v4/projects/105/trigger/pipeline"
artifacts
:
cache
:
key
:
data-cache
paths
:
-
R/list_figures.rds
expire_in
:
1 week
## Build docker image of the R shiny app
## using DockerFile and register it in the
...
...
@@ -89,10 +89,13 @@ buildImageDocker:
DOCKER_DRIVER
:
overlay2
services
:
-
docker:19.03.0-dind
cache
:
key
:
data-cache
before_script
:
-
'
apk
add
--update
curl'
-
'
curl
--header
"PRIVATE-TOKEN:
$PTOKEN"
-o
artifacts.zip
"https://gitlab.paca.inrae.fr/api/v4/projects/105/jobs/artifacts/master/download?job=mergeData"'
-
"
unzip
-o
artifacts.zip
&&
mv
R/list_figures.rds
www/list_figures.rds"
#- 'apk add --update curl'
#- 'curl --header "PRIVATE-TOKEN: $PTOKEN" -o artifacts.zip "https://gitlab.paca.inrae.fr/api/v4/projects/105/jobs/artifacts/master/download?job=mergeData"'
#- "unzip -o artifacts.zip && mv R/list_figures.rds www/list_figures.rds"
-
"
cp
R/list_figures.rds
www/list_figures.rds"
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
stage
:
build_img
rules
:
...
...
Jean-Francois Rey
☕
@jfrey
mentioned in commit
ac45ddad
·
Jul 20, 2020
mentioned in commit
ac45ddad
mentioned in commit ac45ddad07e2fd5d8eae33201f2da2353db911ed
Toggle commit list
Jean-Francois Rey
☕
@jfrey
mentioned in merge request
!10 (merged)
·
Jul 20, 2020
mentioned in merge request
!10 (merged)
mentioned in merge request !10
Toggle commit list
Jean-Francois Rey
☕
@jfrey
mentioned in commit
0dc5238e
·
Jul 20, 2020
mentioned in commit
0dc5238e
mentioned in commit 0dc5238edef8c2912ff14b09db7d03a57c6b56fa
Toggle commit list
Write
Preview
Supports
Markdown
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