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: ...@@ -35,11 +35,11 @@ build-my-base:
build-my-r-base: build-my-rbase:
stage: build stage: build
needs: [build-my-base] needs: [build-my-base]
variables: variables:
STAGE_NAME: "my-r-base" STAGE_NAME: "my-rbase"
script: script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
# pull the previous stage # pull the previous stage
...@@ -68,13 +68,13 @@ build-my-r-base: ...@@ -68,13 +68,13 @@ build-my-r-base:
build-my-r-shiny: build-my-r-shiny:
stage: build stage: build
needs: ["build-my-r-base"] needs: ["build-my-rbase"]
variables: variables:
STAGE_NAME: "my-r-shiny" STAGE_NAME: "my-r-shiny"
script: script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
# pull the previous stage # 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 # put both versions in a env var, to be used as tag
- | - |
if [ "latest" == "${R_VERSION}" ]; then if [ "latest" == "${R_VERSION}" ]; then
......
...@@ -39,7 +39,7 @@ COPY ./scripts /opt/scripts ...@@ -39,7 +39,7 @@ COPY ./scripts /opt/scripts
########################################################### ###########################################################
# R image # R image
########################################################### ###########################################################
FROM my-base as my-r-base FROM my-base as my-rbase
ARG R_VERSION=latest ARG R_VERSION=latest
#install R, along with its dependencies #install R, along with its dependencies
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment