mirror of
https://github.com/thegeeklab/retry.git
synced 2024-11-21 23:20:40 +00:00
fix ci workflow conditions
This commit is contained in:
parent
7968bbc6ec
commit
a12c0fdbc7
@ -1,9 +1,7 @@
|
|||||||
---
|
---
|
||||||
when:
|
when:
|
||||||
- event:
|
- event: [pull_request, tag]
|
||||||
- pull_request
|
- event: [push, manual]
|
||||||
- tag
|
|
||||||
- event: push
|
|
||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
@ -21,8 +19,7 @@ steps:
|
|||||||
provenance: false
|
provenance: false
|
||||||
repo: thegeeklab/${CI_REPO_NAME}
|
repo: thegeeklab/${CI_REPO_NAME}
|
||||||
when:
|
when:
|
||||||
- event:
|
- event: [pull_request]
|
||||||
- pull_request
|
|
||||||
|
|
||||||
publish-dockerhub:
|
publish-dockerhub:
|
||||||
group: build
|
group: build
|
||||||
@ -42,9 +39,8 @@ steps:
|
|||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
when:
|
when:
|
||||||
- event:
|
- event: [tag]
|
||||||
- tag
|
- event: [push, manual]
|
||||||
- event: push
|
|
||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
@ -67,11 +63,11 @@ steps:
|
|||||||
username:
|
username:
|
||||||
from_secret: quay_username
|
from_secret: quay_username
|
||||||
when:
|
when:
|
||||||
- event:
|
- event: [tag]
|
||||||
- tag
|
- event: [push, manual]
|
||||||
- event: push
|
|
||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- test
|
- test
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
---
|
---
|
||||||
when:
|
when:
|
||||||
- event:
|
- event: [tag]
|
||||||
- tag
|
- event: [push, manual]
|
||||||
- event: push
|
|
||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
runs_on:
|
|
||||||
- success
|
runs_on: [success, failure]
|
||||||
- failure
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
matrix:
|
matrix:
|
||||||
@ -19,13 +17,14 @@ steps:
|
|||||||
from_secret: matrix_password
|
from_secret: matrix_password
|
||||||
roomid:
|
roomid:
|
||||||
from_secret: matrix_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:
|
username:
|
||||||
from_secret: matrix_username
|
from_secret: matrix_username
|
||||||
when:
|
when:
|
||||||
- status:
|
- status: [success, failure]
|
||||||
- success
|
|
||||||
- failure
|
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- test
|
- test
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
---
|
---
|
||||||
when:
|
when:
|
||||||
- event:
|
- event: [pull_request, tag]
|
||||||
- pull_request
|
- event: [push, manual]
|
||||||
- tag
|
|
||||||
- event: push
|
|
||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
@ -37,8 +35,7 @@ steps:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
title: ${CI_COMMIT_TAG}
|
title: ${CI_COMMIT_TAG}
|
||||||
when:
|
when:
|
||||||
- event:
|
- event: [tag]
|
||||||
- tag
|
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- test
|
- test
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
---
|
---
|
||||||
when:
|
when:
|
||||||
- event:
|
- event: [pull_request, tag]
|
||||||
- pull_request
|
- event: [push, manual]
|
||||||
- tag
|
|
||||||
- event: push
|
|
||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user