machinelock-manager/.drone.yml

54 lines
1.1 KiB
YAML
Raw Normal View History

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