Skip to content

Commit

Permalink
drone: build PRs as well (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
djmaze authored Jan 12, 2022
1 parent bc80041 commit 218b285
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
kind: pipeline
name: default
name: release

steps:
- name: build & push
- name: build & push release
image: thegeeklab/drone-docker-buildx:20.11@sha256:327b6fb15dc841cf80c7c429f60d695efd7c7a476fe363afac25a58befd4c203
settings:
auto_tag: true
Expand All @@ -21,8 +21,31 @@ trigger:
event:
exclude:
- pull_request

---
kind: signature
hmac: 7a382995e75bae16394a9cd0fbb34ed56ac392fa932b15ea57bda513240ee5f7
kind: pipeline
name: pr

...
steps:
- name: build & push PR
image: thegeeklab/drone-docker-buildx:20.11@sha256:327b6fb15dc841cf80c7c429f60d695efd7c7a476fe363afac25a58befd4c203
settings:
repo: mazzolino/shepherd
tags:
- pr-${DRONE_PULL_REQUEST}
platforms:
- linux/amd64
- linux/arm64
- linux/armhf
username:
from_secret: docker_username
password:
from_secret: docker_password

trigger:
event:
- pull_request

---
kind: signature
hmac: d065ad11566d347b9bb8185525e687b936332efe07826e6070cee29bca196018

0 comments on commit 218b285

Please sign in to comment.