-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
63 lines (56 loc) · 1.16 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
image: node:latest
before_script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
stages:
- staging_migrate
- production_migrate
- build
- staging_deploy
- production_deploy
staging_migrate:
environment: review/develop
stage: staging_migrate
script:
- npm i prisma --dev
- npm i
- npx prisma migrate deploy
- npx prisma db seed
only:
- develop
production_migrate:
environment: production
stage: production_migrate
script:
- npm i prisma --dev
- npm i
- npx prisma migrate deploy
- npx prisma db seed
only:
- master
build:
stage: build
script:
- npm i typescript
- npm run build
- ls
only:
- develop
- master
staging_deploy:
environment: review/develop
stage: staging_deploy
image: ruby:latest
script:
- dpl --provider=heroku --app=$HEROKU_APP --api-key=$HEROKU_API_KEY
only:
- develop
production_deploy:
environment: production
stage: production_deploy
image: ruby:latest
script:
- dpl --provider=heroku --app=$HEROKU_APP --api-key=$HEROKU_API_KEY
only:
- master