hopefully no more duplicate jobs
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
Tobias Trabelsi 2023-10-30 23:12:56 +01:00
parent b0577f3c55
commit bb1c7fb1d3
Signed by: lerentis
GPG Key ID: FF0C2839718CAF2E

View File

@ -4,10 +4,11 @@ steps:
commands: commands:
- go test ./... - go test ./...
when: when:
event: - event: pull_request
- push - event: push
- pull_request branch: main
build: - event: tag
pr-build:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
settings: settings:
platforms: linux/arm64/v8 platforms: linux/arm64/v8
@ -17,9 +18,36 @@ steps:
- ${CI_COMMIT_SHA} - ${CI_COMMIT_SHA}
dry-run: true dry-run: true
when: when:
event: - event: pull_request
- push pre-release:
- pull_request 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
notify: notify:
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
@ -29,9 +57,9 @@ steps:
token: token:
from_secret: telegram_secret from_secret: telegram_secret
when: when:
status: - event: pull_request
- failure - event: push
- success branch: main
event: - event: tag
- push - status: success
- pull_request - status: failure