-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
60 lines (55 loc) · 1.09 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
kind: pipeline
name: feeds
workspace:
base: /go
path: src/github.com/CNSC2Events/feeds
steps:
- name: build
image: golang:1.13
environment:
GO111MODULE: on
commands:
- go install
- name: up_dev
image: golang:1.13
environment:
AWS_SECRET_ACCESS_KEY:
from_secret: AWS_SECRET_ACCESS_KEY
AWS_ACCESS_KEY_ID:
from_secret: AWS_ACCESS_KEY_ID
SERVERLESS: on
commands:
- curl -sf https://up.apex.sh/install | sh
- up deploy staging -v
when:
event:
- push
branch:
- master
- dev
- name: up_prod
image: golang:1.13
environment:
AWS_SECRET_ACCESS_KEY:
from_secret: AWS_SECRET_ACCESS_KEY
AWS_ACCESS_KEY_ID:
from_secret: AWS_ACCESS_KEY_ID
SERVERLESS: on
commands:
- curl -sf https://up.apex.sh/install | sh
- up deploy production -v
when:
event:
- push
branch:
- master
- name: publish_dockerhub
image: plugins/docker
settings:
repo: scnace/feeds
auto_tag: true
username:
from_secret: DOCKERHUB_USER
password:
from_secret: DOCKERHUB_PASSWORD
dockerfile: Dockerfile