-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
61 lines (55 loc) · 1.8 KB
/
.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
53
54
55
56
57
58
59
60
61
workspace:
base: /go
path: src/github.com/kontena/pharos-host-upgrades
pipeline:
test:
image: golang:1.10
commands:
- curl -L -o /tmp/dep-linux-amd64 https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 && install -m 0755 /tmp/dep-linux-amd64 /usr/local/bin/dep
- apt-get update && apt-get install -y libsystemd-dev
- dep ensure -vendor-only
- go test -v ./...
# build and deploy quay.io/kontena/pharos-host-upgrades-amd64:edge from master branch
docker-edge-amd64:
registry: quay.io
image: plugins/docker
dockerfile: Dockerfile
secrets: [ docker_username, docker_password ]
repo: quay.io/kontena/pharos-host-upgrades-amd64
tags: edge
when:
branch: master
# build and deploy quay.io/kontena/pharos-host-upgrades-arm64:edge from master branch
docker-edge-arm64:
registry: quay.io
image: plugins/docker
dockerfile: Dockerfile.cross
build_args:
- ARCH=arm64
secrets: [ docker_username, docker_password ]
repo: quay.io/kontena/pharos-host-upgrades-arm64
tags: edge
when:
branch: master
# build and deploy quay.io/kontena/pharos-host-upgrades-amd64:latest from master branch tags
docker-amd64:
registry: quay.io
image: plugins/docker
dockerfile: Dockerfile
secrets: [ docker_username, docker_password ]
repo: quay.io/kontena/pharos-host-upgrades-amd64
auto_tag: true
when:
event: tag
# build and deploy quay.io/kontena/pharos-host-upgrades-arm46:latest from master branch tags
docker-arm64:
registry: quay.io
image: plugins/docker
dockerfile: Dockerfile.cross
build_args:
- ARCH=arm64
secrets: [ docker_username, docker_password ]
repo: quay.io/kontena/pharos-host-upgrades-arm64
auto_tag: true
when:
event: tag