-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
62 lines (55 loc) · 1.84 KB
/
.drone.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
# This builds our site with the default parameters in the public/ folder
# of where the repo's been checked out.
#build:
# image: registry:5001/labs/hugo-build:0.15
# commands:
# - hugo
deploy:
rancher-drone-execute:
image: eastest/drone-rancher-execute
url: $$RANCHER_URL
access_key: $$RANCHER_ACCESS_KEY
secret_key: $$RANCHER_SECRET_KEY
service: $$SERVICE_NAME
cmd: "drush vset site_offline TRUE --root=/var/application/www >> /mnt/shared-storage/backups/deploy-log.log 2>&1"
exec_timeout: 600
# Build a docker image for the blog and tag it with "latest" and the
# build number (generated by Drone).
#publish:
# docker:
# repo: eastest/web-application
# tag: latest
# file: Dockerfile
# username: $$REGISTERY_USER
# password: $$REGISTERY_PASSWORD
# insecure: false
# Deploy the fresh new image to our Rancher environment for QA.
# This creates the containers in the "TechBlog" stack in our environment.
deploy:
rancher:
url: $$RANCHER_URL
access_key: $$RANCHER_ACCESS_KEY
secret_key: $$RANCHER_SECRET_KEY
service: $$SERVICE_NAME
docker_image: $$SERVICE_CONTAINER
confirm: true
timeout: 300
start_first: true
deploy:
rancher-drone-execute:
image: eastest/drone-rancher-execute
url: $$RANCHER_URL
access_key: $$RANCHER_ACCESS_KEY
secret_key: $$RANCHER_SECRET_KEY
service: $$SERVICE_NAME
cmd: "drush updb -y --root=/var/application/www >> /mnt/shared-storage/backups/deploy-log.log 2>&1"
exec_timeout: 600
deploy:
rancher-drone-execute:
image: eastest/drone-rancher-execute
url: $$RANCHER_URL
access_key: $$RANCHER_ACCESS_KEY
secret_key: $$RANCHER_SECRET_KEY
service: $$SERVICE_NAME
cmd: "drush vset site_offline FALSE --root=/var/application/www >> /mnt/shared-storage/backups/deploy-log.log 2>&1"
exec_timeout: 600