-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
104 lines (88 loc) · 1.84 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
kind: pipeline
name: linux-amd64
platform:
os: linux
arch: amd64
steps:
- name: build for Linux
image: rust:alpine
environment:
RUSTFLAGS: -D warnings
commands:
- apk add --no-cache musl-dev
- rustup install nightly
- cargo +nightly update
- cargo +nightly check --release
- cargo +nightly build --release
- cp -p target/release/galry target/release/galry.tmp
- mv -f target/release/galry.tmp target/release/galry
- name: build docker image
image: plugins/docker
settings:
repo: svedrin/galry
tags: latest-amd64
username: svedrin
password:
from_secret: docker-registry-pw
cache_from: "svedrin/galry:latest-amd64"
when:
event:
exclude:
- pull_request
---
kind: pipeline
name: linux-armv7l
platform:
os: linux
arch: arm
steps:
- name: build for Linux
image: rust:latest
environment:
RUSTFLAGS: -D warnings
commands:
- rustup install nightly
- cargo +nightly update
- cargo +nightly build --release
- cp -p target/release/galry target/release/galry.tmp
- mv -f target/release/galry.tmp target/release/galry
- name: build docker image
image: plugins/docker
settings:
repo: svedrin/galry
tags: latest-armv7l
username: svedrin
password:
from_secret: docker-registry-pw
cache_from: "svedrin/galry:latest-armv7l"
when:
event:
exclude:
- pull_request
depends_on:
- linux-amd64
---
kind: pipeline
type: docker
name: manifest
steps:
- name: publish
image: plugins/manifest:1.2
settings:
ignore_missing: true
spec: docker-manifest.tmpl
username: svedrin
password:
from_secret: docker-registry-pw
trigger:
event:
exclude:
- pull_request
depends_on:
- linux-amd64
- linux-armv7l
---
kind: signature
hmac: 237bb0b4455541b58635990b414efba0c2356fcbd6409191640d58575688f162
...