Skip to content
Snippets Groups Projects
Commit 7d9ff634 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

Update .gitlab-ci.yml

parent d6b94d81
Branches
Tags
2 merge requests!35Recette,!33Dev
......@@ -33,6 +33,18 @@ build_dev:
- docker build --pull -t "$CI_REGISTRY_IMAGE:dev" --build-arg conf=dev .
- docker push "$CI_REGISTRY_IMAGE:dev"
build_mobile:
image: docker:18.09
services:
- docker:18.09-dind
stage: build
only:
- dev
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE:mobile" --build-arg conf=dev .
- docker push "$CI_REGISTRY_IMAGE:mobile"
build_json_server:
image: docker:18.09
services:
......@@ -58,6 +70,19 @@ deploy_dev:
- docker-compose up -d web-app
- docker system prune -a -f
deploy_mobile:
stage: deploy
tags:
- deploy
only:
- mobile
script:
- cd /home/mps/ram
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker-compose pull web-app
- docker-compose up -d web-app
- docker system prune -a -f
deploy_rec:
stage: deploy
tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment