-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.drone.yml
More file actions
58 lines (55 loc) · 1.15 KB
/
Copy path.drone.yml
File metadata and controls
58 lines (55 loc) · 1.15 KB
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
---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
workspace:
base: /src
path: nightwatch
steps:
- name: test
image: golang:1.13
commands:
- go mod download
- make test
- name: build
image: golang:1.13
commands:
- GO111MODULE=off go get github.com/mitchellh/gox
- make build
environment:
BUILD_ARCHS: "linux/amd64 linux/arm64 linux/arm darwin/amd64"
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- output/*
draft: true
checksum:
- md5
- sha256
when:
event: tag
- name: docker_amd64
image: plugins/docker
settings:
username: jakolehm
password:
from_secret: dockerhub_token
repo: jakolehm/nightwatch-amd64
auto_tag: true
build_args:
- binary=nightwatch_linux_amd64
- name: docker_arm64
image: plugins/docker
settings:
username: jakolehm
password:
from_secret: dockerhub_token
repo: jakolehm/nightwatch-arm64
auto_tag: true
build_args:
- binary=nightwatch_linux_arm64