0
0
mirror of https://github.com/thegeeklab/retry.git synced 2024-11-21 13:10:39 +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:
- ref: refs/heads/main
- ref: refs/tags/**
- ref: refs/pull/**
- event:
- pull_request
- tag
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
dryrun:
@ -18,7 +21,8 @@ steps:
provenance: false
repo: thegeeklab/${CI_REPO_NAME}
when:
- ref: refs/pull/**
- event:
- pull_request
publish-dockerhub:
group: build
@ -38,8 +42,11 @@ steps:
username:
from_secret: docker_username
when:
- ref: refs/heads/main
- ref: refs/tags/**
- event:
- tag
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
publish-quay:
group: build
@ -60,8 +67,11 @@ steps:
username:
from_secret: quay_username
when:
- ref: refs/heads/main
- ref: refs/tags/**
- event:
- tag
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
depends_on:
- test

View File

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

View File

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

View File

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