2023-10-31 22:18:08 +00:00
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
branch: main
|
|
|
|
|
2024-06-04 20:28:10 +00:00
|
|
|
labels:
|
|
|
|
uploadfilter24.eu/instance-role: Woodpecker
|
2024-03-04 22:00:51 +00:00
|
|
|
|
2023-10-31 22:18:08 +00:00
|
|
|
steps:
|
|
|
|
test:
|
2024-06-04 20:35:43 +00:00
|
|
|
image: golang:1.22
|
2023-10-31 22:18:08 +00:00
|
|
|
commands:
|
|
|
|
- go test ./...
|
|
|
|
pre-release:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
settings:
|
2024-03-04 22:00:51 +00:00
|
|
|
platforms: linux/arm64/v8,linux/amd64
|
2023-11-01 19:48:45 +00:00
|
|
|
repo: lerentis/woodpecker-autoscaler
|
2023-10-31 22:18:08 +00:00
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
- ${CI_COMMIT_SHA}
|
|
|
|
password:
|
|
|
|
from_secret: docker_hub_password
|
|
|
|
username:
|
|
|
|
from_secret: docker_hub_username
|
|
|
|
notify:
|
|
|
|
image: appleboy/drone-telegram
|
|
|
|
settings:
|
|
|
|
message: "Commit {{ commit.message }} ({{ commit.link }}) ran with build {{ build.number }} and finished with status {{ build.status }}."
|
|
|
|
to:
|
|
|
|
from_secret: telegram_userid
|
|
|
|
token:
|
|
|
|
from_secret: telegram_secret
|