0
0
mirror of https://github.com/thegeeklab/retry.git synced 2024-11-24 12:20:39 +00:00

fix ci workflow conditions

This commit is contained in:
Robert Kaussow 2023-07-26 20:43:03 +02:00
parent 7968bbc6ec
commit a12c0fdbc7
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
4 changed files with 22 additions and 32 deletions

View File

@ -1,9 +1,7 @@
---
when:
- event:
- pull_request
- tag
- event: push
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
@ -21,8 +19,7 @@ steps:
provenance: false
repo: thegeeklab/${CI_REPO_NAME}
when:
- event:
- pull_request
- event: [pull_request]
publish-dockerhub:
group: build
@ -42,9 +39,8 @@ steps:
username:
from_secret: docker_username
when:
- event:
- tag
- event: push
- event: [tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
@ -67,11 +63,11 @@ steps:
username:
from_secret: quay_username
when:
- event:
- tag
- event: push
- event: [tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
depends_on:
- test

View File

@ -1,13 +1,11 @@
---
when:
- event:
- tag
- event: push
- event: [tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
runs_on:
- success
- failure
runs_on: [success, failure]
steps:
matrix:
@ -19,13 +17,14 @@ steps:
from_secret: matrix_password
roomid:
from_secret: matrix_roomid
template: "Status: **{{ .Build.Status }}**<br/> Build: [{{ .Repo.Owner }}/{{ .Repo.Name }}]({{ .Build.Link }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}<br/> Message: {{ .Commit.Message.Title }}"
template: >-
Status: **{{ .Build.Status }}**<br/>
Build: [{{ .Repo.Owner }}/{{ .Repo.Name }}]({{ .Build.Link }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}<br/>
Message: {{ .Commit.Message.Title }}"
username:
from_secret: matrix_username
when:
- status:
- success
- failure
- status: [success, failure]
depends_on:
- test

View File

@ -1,9 +1,7 @@
---
when:
- event:
- pull_request
- tag
- event: push
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
@ -37,8 +35,7 @@ steps:
overwrite: true
title: ${CI_COMMIT_TAG}
when:
- event:
- tag
- event: [tag]
depends_on:
- test

View File

@ -1,9 +1,7 @@
---
when:
- event:
- pull_request
- tag
- event: push
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}