Skip to content
Snippets Groups Projects
Commit bd7dae0e authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

rename target

parent a11a987b
No related branches found
No related tags found
1 merge request!9Draft: split build in multiple stage
Pipeline #102186 failed
......@@ -35,11 +35,11 @@ build-my-base:
build-my-r-base:
build-my-rbase:
stage: build
needs: [build-my-base]
variables:
STAGE_NAME: "my-r-base"
STAGE_NAME: "my-rbase"
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
# pull the previous stage
......@@ -68,13 +68,13 @@ build-my-r-base:
build-my-r-shiny:
stage: build
needs: ["build-my-r-base"]
needs: ["build-my-rbase"]
variables:
STAGE_NAME: "my-r-shiny"
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
# pull the previous stage
- docker pull "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/my-r-base/${R_VERSION}:$CI_COMMIT_SHA"
- docker pull "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/my-rbase/${R_VERSION}:$CI_COMMIT_SHA"
# put both versions in a env var, to be used as tag
- |
if [ "latest" == "${R_VERSION}" ]; then
......
......@@ -39,7 +39,7 @@ COPY ./scripts /opt/scripts
###########################################################
# R image
###########################################################
FROM my-base as my-r-base
FROM my-base as my-rbase
ARG R_VERSION=latest
#install R, along with its dependencies
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment