hopefully no more duplicate jobs
This commit is contained in:
parent
b0577f3c55
commit
bb1c7fb1d3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user