forked from GoogleCloudPlatform/protoc-gen-bq-schema
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.drone.yml
52 lines (47 loc) · 924 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
49
50
51
52
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: build
image: golang:1.12.14-alpine3.10
environment:
GOPROXY: https://athens.chuhlomin.com
commands:
- apk add --no-cache make git gcc libc-dev protobuf
- make test
- make install
- name: cr-latest
image: plugins/docker
settings:
repo: chuhlomin/protoc-gen-bq-schema
username: chuhlomin
password:
from_secret: docker_password
tags:
- ${DRONE_COMMIT:0:7}
- latest
when:
event:
- push
branch:
- develop
- name: cr-release
image: plugins/docker
settings:
repo: chuhlomin/protoc-gen-bq-schema
username: chuhlomin
password:
from_secret: docker_password
tags:
- ${DRONE_TAG}
when:
event:
- tag
trigger:
event:
- push
- tag