Skip to content
Snippets Groups Projects
Commit 1c92767f authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Update CI/CD configuration in order to use the gitlab registery

parent ad8b540b
No related branches found
No related tags found
No related merge requests found
Pipeline #1025 passed
...@@ -9,11 +9,15 @@ build: ...@@ -9,11 +9,15 @@ build:
only: only:
- master - master
script: script:
- docker-compose --project-name portail-data-documentation build --no-cache - docker-compose build
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker-compose push
deploy: deploy:
stage: deploy stage: deploy
only: only:
- master - master
script: script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker-compose pull
- docker-compose --project-name portail-data-documentation up -d --force-recreate - docker-compose --project-name portail-data-documentation up -d --force-recreate
...@@ -2,8 +2,8 @@ version: '3.1' ...@@ -2,8 +2,8 @@ version: '3.1'
services: services:
mkdocs: mkdocs:
build: build: .
context: ./ image: registry.alpha.grandlyon.com/refonte-data/documentation
ports: ports:
- 2077:80 - 2077:80
logging: logging:
...@@ -11,4 +11,4 @@ services: ...@@ -11,4 +11,4 @@ services:
options: options:
max-size: "2m" max-size: "2m"
max-file: "5" max-file: "5"
restart: on-failure restart: unless-stopped
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment