-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
43 lines (39 loc) · 898 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
workspace:
base: /go
path: src/github.com/uswitch/surtr
pipeline:
build:
image: golang:1.17
environment:
- GO111MODULE=on
commands:
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bin/surtr
docker-branch:
image: plugins/docker
repo: quay.io/uswitch/surtr
registry: quay.io
secrets: [ docker_username, docker_password ]
tags:
- ${DRONE_COMMIT_SHA}
- ${DRONE_COMMIT_BRANCH}
when:
event: push
docker-latest:
image: plugins/docker
repo: quay.io/uswitch/surtr
registry: quay.io
secrets: [ docker_username, docker_password ]
tags:
- latest
when:
event: push
branch: master
docker-tagged:
image: plugins/docker
repo: quay.io/uswitch/surtr
registry: quay.io
secrets: [ docker_username, docker_password ]
tags:
- ${DRONE_TAG}
when:
event: tag