From 7d2aa18df94ee17e1ac1a20cb18fd2d1b903ec44 Mon Sep 17 00:00:00 2001 From: Ada Date: Sun, 18 Feb 2024 22:27:25 +0100 Subject: [PATCH] :construction_worker: Add build releases file on tag --- .woodpecker/release.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .woodpecker/release.yaml diff --git a/.woodpecker/release.yaml b/.woodpecker/release.yaml new file mode 100644 index 0000000..9c36d4b --- /dev/null +++ b/.woodpecker/release.yaml @@ -0,0 +1,24 @@ +steps: + - name: Build + image: golang:1.22 + commands: + - go mod download + - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o plakken-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 plakken-linux-arm64 + - CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags "-w -s" -o plakken-linux-arm + - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o plakken-windows-amd64.exe + - CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-w -s" -o plakken-windows-arm64.exe + - CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags "-w -s" -o plakken-windows-arm.exe + when: + event: tag + - name: Release + image: woodpeckerci/plugin-gitea-release + settings: + base_url: https://git.gnous.eu + files: + - "plakken*" + api_key: + from_secret: release_token + target: main + when: + event: tag \ No newline at end of file