From 0171fb8569195a718eb197888155bc3a2541d01e Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Fri, 8 Jan 2021 23:52:36 +0000 Subject: [PATCH] dont attempt to release PRs on buildrone --- .drone.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.drone.yml b/.drone.yml index 2981262..8754fc5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -45,3 +45,31 @@ steps: BUILDRONE_KEY: from_secret: BUILDRONE_KEY +trigger: + branch: + - main + event: + exclude: + - pull_request + +--- +name: jfa-go-pr +kind: pipeline +type: docker + +steps: + - name: build + image: golang:latest + commands: + - apt update -y + - apt install build-essential python3-pip curl software-properties-common sed upx -y + - (curl -sL https://deb.nodesource.com/setup_14.x | bash -) + - apt install nodejs + - curl -sL https://git.io/goreleaser > goreleaser.sh + - chmod +x goreleaser.sh + - ./goreleaser.sh --snapshot --skip-publish --rm-dist + +trigger: + event: + include: + - pull_request