-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
58 lines (52 loc) · 1.09 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
---
kind: pipeline
name: default
steps:
- name: set version in Cargo.toml
image: rust:alpine
commands:
- echo "Setting Cargo.toml to version $DRONE_TAG:"
- sed -i -e "s/99\.99\.9/$(echo $DRONE_TAG | tr -d 'v')/" Cargo.toml
- cat Cargo.toml
when:
event: tag
- name: build Rust version
image: rust:alpine
commands:
- apk add --no-cache musl-dev
- cargo build --release
- echo -n "latest" > .tags
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github-token
files:
- target/release/lagerist
checksum:
- sha256
when:
event: tag
- name: set version tag
image: alpine:latest
commands:
- echo -n ",${DRONE_TAG}" >> .tags
when:
event: tag
- name: build docker image
image: plugins/docker
settings:
repo: svedrin/lagerist
username: svedrin
password:
from_secret: docker-registry-pw
cache_from: "svedrin/lagerist:latest"
when:
branch: master
event:
exclude:
- pull_request
---
kind: signature
hmac: 0ea67350f1e0503acd76453f439d2354559effd58d7157ff39fe301ebb7db242
...