-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
48 lines (45 loc) · 891 Bytes
/
.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
kind: pipeline
name: homepage
workspace:
base: /go
path: src/github.com/scbizu/homepage
steps:
- name: build
image: golang:1.11
environment:
GO111MODULE: on
commands:
- go install
- name: up_dev
image: golang:1.11
environment:
AWS_SECRET_ACCESS_KEY:
from_secret: AWS_SECRET_ACCESS_KEY
AWS_ACCESS_KEY_ID:
from_secret: AWS_ACCESS_KEY_ID
GO111MODULE: on
commands:
- curl -sf https://up.apex.sh/install | sh
- up deploy staging
when:
event:
- push
- pull_request
branch:
- feature/*
- name: up_prod
image: golang:1.11
environment:
AWS_SECRET_ACCESS_KEY:
from_secret: AWS_SECRET_ACCESS_KEY
AWS_ACCESS_KEY_ID:
from_secret: AWS_ACCESS_KEY_ID
GO111MODULE: on
commands:
- curl -sf https://up.apex.sh/install | sh
- up deploy production
when:
event:
- push
branch:
- master