2023-10-31 22:18:08 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
|
|
|
|
2024-03-04 22:00:51 +00:00
|
|
|
labels:
|
|
|
|
uploadfilter24.eu/instance-role: Woodpecker
|
|
|
|
|
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 ./...
|
|
|
|
pr-build:
|
|
|
|
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}
|
|
|
|
dry-run: true
|
|
|
|
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
|