update build and deploy events (ci)

This commit is contained in:
Simon Vieille 2023-10-18 19:57:21 +02:00
parent 7a4dcd83f8
commit 12cc3ee6a2
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,7 @@
when:
event: [push, manual, pull_request]
branch: [master]
steps:
docker:
image: docker:dind
@ -7,5 +11,3 @@ steps:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
- event: [push, manual, pull_request]
- branch: [master]

View file

@ -1,3 +1,6 @@
when:
event: cron
steps:
docker:
image: docker:dind
@ -12,7 +15,6 @@ steps:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
- event: cron
- branch: [master]
mail:
@ -28,5 +30,4 @@ steps:
from_secret: mail_from
subject: "[{{ repo.owner }}/{{ repo.name }}] Pipeline #{{ build.number }}: {{ build.status }}"
when:
- event: cron
- status: [success, failure]