-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
46 lines (44 loc) · 1.32 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
stages:
- deploy
deploy_be:
stage: deploy
image: node:latest
tags:
- hva
only:
refs:
- master
changes:
- "backend/**/*"
variables:
- $DEPLOYMENT == "true"
script:
- git branch -D splitting-be || true
- git remote rm backend || true
- git remote add backend https://heroku:[email protected]/audiodiary-be-team1-staging.git || true
- git subtree split --prefix backend -b splitting-be
- git push --force backend splitting-be:master
deploy_fe:
stage: deploy
image: node:latest
tags:
- hva
only:
refs:
- master
changes:
- "frontend/**/*"
variables:
- $DEPLOYMENT == "true"
script:
# - git remote rm frontend || true
# - git remote add frontend https://heroku:[email protected]/audiodiary-fe-team1-staging.git || true
# - git subtree split --prefix frontend -b splitting-fe
# - git fetch --all --unshallow
# - git push --force frontend splitting-fe:master
# - git branch -D splitting-fe
- git branch -D splitting-fe || true
- git remote rm frontend || true
- git remote add frontend https://heroku:[email protected]/audiodiary-fe-team1-staging.git || true
- git subtree split --prefix frontend -b splitting-fe
- git push --force frontend splitting-fe:master