machinelock-manager/.drone.yml

54 lines
1.1 KiB
YAML

---
kind: pipeline
type: docker
name: default
trigger:
event:
- tag
steps:
- name: go get
image: golang
commands:
- go get
- mkdir dist
- name: Building for Linux
image: golang
environment:
GOOS: linux
GOARCH: amd64
commands:
- go build -v -o dist/machinelock-manager-linux-amd64
- name: Building for Windows
image: golang
environment:
GOOS: windows
GOARCH: amd64
commands:
- go build -v -o dist/machinelock-manager-windows-amd64
- name: Building for Mac
image: golang
environment:
GOOS: darwin
GOARCH: amd64
commands:
- go build -v -o dist/machinelock-manager-darwin-amd64
- name: Building for Mac Silicon
image: golang
environment:
GOOS: darwin
GOARCH: arm64
commands:
- go build -v -o dist/machinelock-manager-darwin-arm64
- name: gitea release
image: plugins/gitea-release
settings:
api_key:
from_secret: token
base_url: https://git.ctdo.de
files: dist/*
checksum:
- md5
- sha1
- sha256