-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
44 lines (32 loc) · 1022 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
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- git clone --branch=master --depth=1 --quiet [email protected]:wordpress/deploy-script.git
- chmod +x deploy-script/*.sh
stages:
- staging
- production
upload_live:
stage: production
script:
- cd deploy-script
- ./deploy.sh -u $SSH_USER_PRODUCTION -d $DEPLOY_PATH -h $DEPLOY_SERVER --theme
only:
- tags
variables:
DEPLOY_PATH: /var/www/epiphyt/wp-content/plugins/german-market-helper
DEPLOY_SERVER: dagobah.kittmedia.com
# GitLab project variables:
# - SSH_USER_PRODUCTION
upload_dev:
stage: staging
script:
- cd deploy-script
- ./deploy.sh -u $SSH_USER_TEST -d $DEPLOY_PATH -h $DEPLOY_SERVER --theme
only:
- master
variables:
DEPLOY_PATH: /var/www/dev/epiphyt/wp-content/plugins/german-market-helper
DEPLOY_SERVER: hoth.kittmedia.com
# GitLab project variables:
# - SSH_USER_TEST