-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
35 lines (34 loc) · 835 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
workspace:
base: /go
path: src/github.com/zottelchin/Votierungstracker
pipeline:
backend:
image: golang
commands:
- go get -u github.com/golang/dep/cmd/dep
- dep ensure
- CGO_ENABLED=1 GOOS=linux go build -a -ldflags '-extldflags "-static" -s' -installsuffix cgo -o Votierungstracker -v .
frontend:
image: node
commands:
- cd frontend
- npm install
- npm run build
publish:
image: plugins/docker
repo: zottelchin/votierungstracker
tags: latest
dockerfile: Dockerfile-CI
secrets: [ docker_username, docker_password ]
when:
branch: master
deploy:
image: plugins/webhook
secrets: [ webhook_urls ]
when:
branch: master
deploy Dev:
image: plugins/webhook
secrets:
- source: webhook_dev_url
target: webhook_urls