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

testing two build

parent 737d8b8b
No related branches found
No related tags found
1 merge request!9Draft: split build in multiple stage
Pipeline #102316 failed
......@@ -20,6 +20,16 @@ build-my-base:
# pull the latest build of this stage of this branch
- docker pull "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/${STAGE_NAME}:latest" || true
# building
- docker build
--cache-from "$CI_REGISTRY_IMAGE:latest"
--cache-from "$CI_REGISTRY_IMAGE/main:latest"
--cache-from "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:latest"
--cache-from "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/${STAGE_NAME}:latest"
--tag "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/${STAGE_NAME}:$CI_COMMIT_SHA"
--tag "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/${STAGE_NAME}:latest"
--file Dockerfile
--target ${STAGE_NAME}
./
- docker build
--cache-from "$CI_REGISTRY_IMAGE:latest"
--cache-from "$CI_REGISTRY_IMAGE/main:latest"
......
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