epee-service/.woodpecker/release.yaml
Maël Gramain 8ab7522c55
Some checks failed
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/lint Pipeline failed
fix ci
2024-05-11 16:06:15 +02:00

22 lines
No EOL
719 B
YAML

steps:
- name: Build
image: golang:1.22
commands:
- go mod download
- go get
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o epee-linux-amd64 # Enable static binary, target Linux, remove debug information and strip binary
- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-w -s" -o epee-linux-arm64
- CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags "-w -s" -o epee-linux-arm
when:
event: tag
- name: Release
image: woodpeckerci/plugin-gitea-release
settings:
base_url: https://git.gnous.eu
files:
- "epee-*"
api_key:
from_secret: release_token
target: main
when:
event: tag