Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 82908105 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Update .gitlab-ci.yml file to limit the build of the images only when their...

Update .gitlab-ci.yml file to limit the build of the images only when their scripts have been updated
parent cea9b530
No related branches found
No related tags found
No related merge requests found
......@@ -16,18 +16,26 @@ stages:
untracked: true
timeout: 2h
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build-ci:
stage: build-ci
only:
changes:
- dockerfile-ci
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -f dockerfile-ci -t $CI_REGISTRY_IMAGE/ci . | tee build.log
- docker push $CI_REGISTRY_IMAGE/ci
extends: .config
build-distrib:
stage: build-distrib
only:
changes:
- dockerfile-ci
- dockerfile-distrib
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -f dockerfile-distrib -t $CI_REGISTRY_IMAGE/distrib .
| tee build.log
- docker push $CI_REGISTRY_IMAGE/distrib
......@@ -35,8 +43,11 @@ build-distrib:
build-vite:
stage: build-vite
only:
changes:
- dockerfile-ci
- dockerfile-vite
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -f dockerfile-vite -t $CI_REGISTRY_IMAGE/vite .
| tee build.log
- docker push $CI_REGISTRY_IMAGE/vite
......
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