-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwercker.yml
46 lines (41 loc) · 1.06 KB
/
wercker.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
box: golang
image-gen:
steps:
- script:
name: install image generator
code: go get -v github.com/TinkerSoc/image-gen
- script:
name: generate responsive images
code: make images
build-staging:
steps:
- arjen/hugo-build:
version: $HUGO_VERSION
flags: --buildDrafts=true --buildFuture=true --baseURL="$STAGING_URL"
build-prod:
steps:
- arjen/hugo-build:
version: $HUGO_VERSION
deploy-staging:
steps:
- install-packages:
name: install rsync
packages: rsync
- add-to-known_hosts:
name: add staging server to known hosts
hostname: $STAGING_HOST
- add-ssh-key:
name: add staging ssh key
keyname: staging
- script:
name: copy to staging server
code: rsync -rt --delete public/ $STAGING_RSYNC
deploy-prod:
steps:
- s3sync:
name: copy to s3
source_dir: public/
delete-removed: true
bucket-url: $AWS_BUCKET_URL
key-id: $AWS_ACCESS_KEY_ID
key-secret: $AWS_SECRET_ACCESS_KEY