-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
46 lines (44 loc) · 1.63 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
image: node:8
cache:
paths:
- node_modules/
deploy:
stage: deploy
script:
- yarn
- yarn bu
- cd bin
- yarn global add now
- now --public --token=$NOW_API_KEY --team=lab
- now alias live --token=$NOW_API_KEY --team=lab
- now alias launch --token=$NOW_API_KEY --team=lab
- now alias mail --token=$NOW_API_KEY --team=lab
- now alias pay --token=$NOW_API_KEY --team=lab
- now alias bin --token=$NOW_API_KEY --team=lab
- now alias box --token=$NOW_API_KEY --team=lab
- now alias hub --token=$NOW_API_KEY --team=lab
- now alias job --token=$NOW_API_KEY --team=lab
- now alias map --token=$NOW_API_KEY --team=lab
- now alias labs --token=$NOW_API_KEY --team=lab
- now alias ship --token=$NOW_API_KEY --team=lab
- now alias photo --token=$NOW_API_KEY --team=lab
- now alias search --token=$NOW_API_KEY --team=lab
- now alias tezuka --token=$NOW_API_KEY --team=lab
- now alias jiro --token=$NOW_API_KEY --team=lab
- now alias ono --token=$NOW_API_KEY --team=lab
- now rm dayflow --yes --safe --token=$NOW_API_KEY --team=lab || true
- echo "Code deployed to now server"
- git init
- git config --global user.email "[email protected]"
- git config --global user.name "GitLab CI"
- git add .
- git commit -am 'new deployment'
# - git remote add heroku https://heroku:[email protected]/dayflow.git
- git remote add heroku https://heroku:[email protected]/tezuka.git
- git push heroku master --force
- echo "Code deployed to heroku server"
environment:
name: deploy
url: https://live.now.sh
only:
- master