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

Adding CI conf for development and staging

parent f62d8b7c
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -2,16 +2,34 @@ stages:
- build
- deploy
build:
build_development:
stage: build
only:
- master
script:
- docker-compose -f docker-compose-development.yml build
deploy_development:
stage: deploy
only:
- master
script:
- docker-compose -f docker-compose-development.yml up -d
environment:
name: development
build_staging:
stage: build
only:
- staging
script:
- docker-compose -f docker-compose-staging.yml build
deploy:
deploy_staging:
stage: deploy
only:
- staging
script:
- docker-compose -f docker-compose-staging.yml up -d
environment:
name: staging
version: "2"
services:
nginx-app:
build:
context: ./
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 8081:8080
\ No newline at end of file
......@@ -5,7 +5,7 @@ services:
build:
context: ./
volumes:
- ./webapp-nginx.conf:/etc/nginx/conf.d/default.conf
- ./nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 8080:8080
\ No newline at end of file
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment