-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
46 lines (41 loc) · 991 Bytes
/
.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
before_script:
- cd /home/gitlab-runner/deploy
- git fetch origin && git checkout origin/$CI_COMMIT_REF_NAME&& git pull origin $CI_COMMIT_REF_NAME
Digital Ocean:
stage: Deploy
when: manual
tags:
- deploy
only:
- branches
script:
- /usr/local/bin/dep/deployer.phar deploy digital-ocean --branch="$CI_COMMIT_REF_NAME"
Google Cloud:
stage: Deploy
when: manual
tags:
- deploy
only:
- branches
script:
- /usr/local/bin/dep/deployer.phar deploy google-cloud-platform --branch="$CI_COMMIT_REF_NAME"
# All:
# stage: Deploy
# when: manual
# tags:
# - deploy
# only:
# - branches
# script:
# - /usr/local/bin/dep/deployer.phar deploy all --branch="$CI_COMMIT_REF_NAME"
Tag All:
stage: Deploy
when: manual
tags:
- deploy
only:
- tags
script:
- /usr/local/bin/dep/deployer.phar deploy all --tag="$CI_COMMIT_TAG"