Skip to content

Commit 218b285

Browse files
authored
drone: build PRs as well (#66)
1 parent bc80041 commit 218b285

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

Diff for: .drone.yml

+28-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
kind: pipeline
3-
name: default
3+
name: release
44

55
steps:
6-
- name: build & push
6+
- name: build & push release
77
image: thegeeklab/drone-docker-buildx:20.11@sha256:327b6fb15dc841cf80c7c429f60d695efd7c7a476fe363afac25a58befd4c203
88
settings:
99
auto_tag: true
@@ -21,8 +21,31 @@ trigger:
2121
event:
2222
exclude:
2323
- pull_request
24+
2425
---
25-
kind: signature
26-
hmac: 7a382995e75bae16394a9cd0fbb34ed56ac392fa932b15ea57bda513240ee5f7
26+
kind: pipeline
27+
name: pr
2728

28-
...
29+
steps:
30+
- name: build & push PR
31+
image: thegeeklab/drone-docker-buildx:20.11@sha256:327b6fb15dc841cf80c7c429f60d695efd7c7a476fe363afac25a58befd4c203
32+
settings:
33+
repo: mazzolino/shepherd
34+
tags:
35+
- pr-${DRONE_PULL_REQUEST}
36+
platforms:
37+
- linux/amd64
38+
- linux/arm64
39+
- linux/armhf
40+
username:
41+
from_secret: docker_username
42+
password:
43+
from_secret: docker_password
44+
45+
trigger:
46+
event:
47+
- pull_request
48+
49+
---
50+
kind: signature
51+
hmac: d065ad11566d347b9bb8185525e687b936332efe07826e6070cee29bca196018

0 commit comments

Comments
 (0)