-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
39 lines (36 loc) · 890 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
kind: pipeline
type: docker
name: default
steps:
- name: test
image: ryts/go:1.15
environment:
COVERALLS_TOKEN:
from_secret: COVERALLS_TOKEN
commands:
- ./build.sh --coveralls
when:
branch:
- master
event:
- push
- name: build
image: ryts/go:1.15
commands:
- PLATFORMS="linux:amd64" ./build.sh --clean --build --build-context
when:
event:
- tag
- name: dockerhub
image: ryts/kaniko-executor:debug-v1.3.0
environment:
DOCKER_REGISTRY:
from_secret: DOCKER_REGISTRY
DOCKER_AUTH:
from_secret: DOCKER_AUTH
commands:
- echo "{\"auths\":{\"$DOCKER_REGISTRY\":{\"auth\":\"$DOCKER_AUTH\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context tar://out/context.tar.gz --dockerfile ci/run/Dockerfile --destination ryts/indigo:$(cat out/version) --destination ryts/indigo:latest
when:
event:
- tag