Skip to content
Snippets Groups Projects
Commit 4e2b44e1 authored by Rajesh, Anisha (PG/T - Comp Sci & Elec Eng)'s avatar Rajesh, Anisha (PG/T - Comp Sci & Elec Eng)
Browse files

incoperated ci/cd pipeline on develop branch

parent 37d78193
Branches develop
No related tags found
No related merge requests found
Pipeline #71528 failed
stages:
- build
- deploy
build:
stage: build
script:
- docker-compose build
deploy:
stage: deploy
script:
- docker-compose up --build -d
only:
- develop
......@@ -4,26 +4,30 @@ services:
build:
context: ./web-user/
dockerfile: Dockerfile
image: registry.gitlab.com/ar02407/surrey-sports-park/webuser:${CI_COMMIT_REF_SLUG}
ports:
- "3031:3000"
webadmin:
build:
context: ./web-tech/
dockerfile: Dockerfile
image: registry.gitlab.com/ar02407/surrey-sports-park/webadmin:${CI_COMMIT_REF_SLUG}
ports:
- "3051:3000"
backend:
build:
context: ./web-prisma
dockerfile: Dockerfile
image: registry.gitlab.com/ar02407/surrey-sports-park/backend:${CI_COMMIT_REF_SLUG}
ports:
- "4321:4321"
# env_file:
# - ./sport-prisma/.env
environment:
DATABASE_URL: "mysql://root:mysql@db:3306/tech?schema=public"
depends_on:
- db
db:
image: mysql:latest
restart: always
......@@ -32,5 +36,3 @@ services:
MYSQL_DATABASE: tech
ports:
- "3306:3306"
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