-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
kind: pipeline | ||
type: docker | ||
name: amd64 | ||
|
||
platform: | ||
arch: amd64 | ||
name: default | ||
|
||
steps: | ||
- name: backend | ||
image: golang | ||
- name: build | ||
image: golang:1.14.4 | ||
commands: | ||
- go mod tidy | ||
- go build | ||
when: | ||
event: tag | ||
- mkdir build | ||
- env GOOS=darwin GOARCH=amd64 go build -o build/lego-${DRONE_TAG:-latest}-darwin-x64 | ||
- env GOOS=linux GOARCH=amd64 go build -o build/lego-${DRONE_TAG:-latest}-linux-x64 | ||
- env GOOS=linux GOARCH=386 go build -o build/lego-${DRONE_TAG:-latest}-linux-x86 | ||
- env GOOS=linux GOARCH=arm64 go build -o build/lego-${DRONE_TAG:-latest}-linux-arm64 | ||
- env GOOS=windows GOARCH=amd64 go build -o build/lego-${DRONE_TAG:-latest}-win-x64.exe | ||
- env GOOS=windows GOARCH=386 go build -o build/lego-${DRONE_TAG:-latest}-win-x86.exe | ||
|
||
steps: | ||
- name: publish | ||
image: plugins/github-release | ||
settings: | ||
api_key: | ||
from_secret: github_token | ||
files: lego | ||
files: build/* | ||
title: Release ${DRONE_TAG} | ||
when: | ||
event: tag |