-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.woodpecker.yml
41 lines (38 loc) · 1014 Bytes
/
.woodpecker.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
steps:
backend:
image: rust
when:
event: [push, pull_request, tag, deployment, cron, manual, release]
environment:
- GIT_HASH=8e77345f1597e40c2e266cb4e6dee74888918a61 # dummy value
- COMPILED_DATE=2021-07-21
commands:
- rustup component add rustfmt
- rustup component add clippy
- make check
- make lint
- make
- make test
build-docker-img:
image: woodpeckerci/plugin-docker-buildx
when:
event: [pull_request]
settings:
dry_run: true
repo: realaravinth/libmedium
username: realaravinth
platforms: linux/amd64,linux/arm64/v8
tag: latest
publish-docker-img:
image: woodpeckerci/plugin-docker-buildx
when:
event: [push, tag, deployment]
branch: master
secrets: [docker_token]
settings:
repo: realaravinth/libmedium
username: realaravinth
password:
from_secret: DOCKER_TOKEN
platforms: linux/amd64,linux/arm64/v8
tag: latest