woodpecker-autoscaler/.woodpecker.yml

66 lines
1.5 KiB
YAML
Raw Normal View History

2023-10-29 21:44:39 +00:00
steps:
test:
image: golang:1.21
commands:
- go test ./...
when:
2023-10-30 22:12:56 +00:00
- event: pull_request
- event: push
branch: main
- event: tag
pr-build:
2023-10-29 21:44:39 +00:00
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/arm64/v8
repo: lerentis/metallb-ip-floater
tags:
- latest
- ${CI_COMMIT_SHA}
dry-run: true
when:
2023-10-30 22:12:56 +00:00
- event: pull_request
pre-release:
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/arm64/v8
repo: lerentis/metallb-ip-floater
tags:
- latest
- ${CI_COMMIT_SHA}
password:
from_secret: docker_hub_password
username:
from_secret: docker_hub_username
when:
- event: push
branch: main
release:
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/arm64/v8
repo: lerentis/metallb-ip-floater
tags:
- latest
- ${CI_COMMIT_TAG}
password:
from_secret: docker_hub_password
username:
from_secret: docker_hub_username
when:
- event: tag
2023-10-29 21:44:39 +00:00
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
when:
2023-10-30 22:12:56 +00:00
- event: pull_request
- event: push
branch: main
- event: tag
- status: success
- status: failure