forked from laszlocph/drone-oss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
48 lines (43 loc) · 864 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: linux-amd64
platform:
os: linux
arch: amd64
steps:
# - name: test
# image: golang:1.11
# commands:
# - go test --tags oss -v ./...
# volumes:
# - name: gopath
# path: /go
- name: build
image: golang:1.11
commands:
- "go build --tags oss -ldflags \"-extldflags \\\\\"-static\\\\\"\" -o release/linux/amd64/drone-server github.com/drone/drone/cmd/drone-server"
volumes:
- name: gopath
path: /go
when:
event:
- push
- tag
- name: publish_server
image: plugins/docker
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
dockerfile: docker/Dockerfile.server.linux.amd64
password:
from_secret: docker_password
repo: laszlocloud/drone-oss
username:
from_secret: docker_username
when:
event:
- push
- tag
volumes:
- name: gopath
temp: {}