ecodash/.woodpecker.yml

42 lines
1,004 B
YAML
Raw Normal View History

2022-10-31 17:39:19 +00:00
pipeline:
docker:
image: woodpeckerci/plugin-docker-buildx
2022-10-31 17:39:19 +00:00
settings:
registry: gitea.massivebox.net
repo: gitea.massivebox.net/massivebox/ecodash
platforms: linux/amd64,linux/arm64
2022-10-31 17:39:19 +00:00
auto_tag: true
username: massivebox
password:
from_secret: auth_token
build:
image: golang
commands:
- go get ecodash
- go build -o ecodash-x86
- env GOOS=linux GOARCH=arm go build -o ecodash-arm
prepare-gitea-release:
image: alpine
commands:
- apk update; apk add zip
- mv ecodash-x86 ecodash; zip -r ecodash-x86.zip templates ecodash
- mv ecodash-arm ecodash; zip -r ecodash-arm.zip templates ecodash
when:
event: tag
2022-10-31 17:39:19 +00:00
gitea-publish:
image: plugins/gitea-release
settings:
base_url: https://gitea.massivebox.net
files:
- ecodash-x86.zip
- ecodash-arm.zip
2022-10-31 17:39:19 +00:00
api_key:
from_secret: auth_token
title: ${CI_COMMIT_TAG}
when:
event: tag