0
0
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:
Robert Kaussow 2023-07-25 23:43:19 +02:00
parent e3bf018e0a
commit 7968bbc6ec
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
4 changed files with 37 additions and 17 deletions

View File

@ -1,8 +1,11 @@
--- ---
when: when:
- ref: refs/heads/main - event:
- ref: refs/tags/** - pull_request
- ref: refs/pull/** - tag
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps: steps:
dryrun: dryrun:
@ -18,7 +21,8 @@ steps:
provenance: false provenance: false
repo: thegeeklab/${CI_REPO_NAME} repo: thegeeklab/${CI_REPO_NAME}
when: when:
- ref: refs/pull/** - event:
- pull_request
publish-dockerhub: publish-dockerhub:
group: build group: build
@ -38,8 +42,11 @@ steps:
username: username:
from_secret: docker_username from_secret: docker_username
when: when:
- ref: refs/heads/main - event:
- ref: refs/tags/** - tag
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
publish-quay: publish-quay:
group: build group: build
@ -60,8 +67,11 @@ steps:
username: username:
from_secret: quay_username from_secret: quay_username
when: when:
- ref: refs/heads/main - event:
- ref: refs/tags/** - tag
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
depends_on: depends_on:
- test - test

View File

@ -1,7 +1,10 @@
--- ---
when: when:
- ref: refs/heads/main - event:
- ref: refs/tags/** - tag
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
runs_on: runs_on:
- success - success
- failure - failure

View File

@ -1,8 +1,11 @@
--- ---
when: when:
- ref: refs/heads/main - event:
- ref: refs/tags/** - pull_request
- ref: refs/pull/** - tag
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps: steps:
checksum: checksum:
@ -34,7 +37,8 @@ steps:
overwrite: true overwrite: true
title: ${CI_COMMIT_TAG} title: ${CI_COMMIT_TAG}
when: when:
- ref: refs/tags/** - event:
- tag
depends_on: depends_on:
- test - test

View File

@ -1,8 +1,11 @@
--- ---
when: when:
- ref: refs/heads/main - event:
- ref: refs/tags/** - pull_request
- ref: refs/pull/** - tag
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps: steps:
lint: lint: