Skip to content

Commit efde4a5

Browse files
committed
chore: set pipeline event conditions at root level
By moving the conditions to the root level, we ensure that the pipelines are only ran when the applicable conditions are met. The current setup will run three pipelines no matter what (and clone the repo thrice), but possibly do nothing afterwards. With the new setup we will e.g. not run the feature-pipeline when pushing a tag.
1 parent ab6d7e8 commit efde4a5

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.woodpecker/.feature.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ pipeline:
55
repo: "${CI_REPO_OWNER##mu-}/${CI_REPO_NAME}"
66
tags: "feature-${CI_COMMIT_BRANCH##feature/}"
77
secrets: [docker_username, docker_password]
8-
when:
9-
event: push
10-
branch: feature/*
8+
when:
9+
event: push
10+
branch: feature/*

.woodpecker/.latest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ pipeline:
55
repo: "${CI_REPO_OWNER##mu-}/${CI_REPO_NAME}"
66
tags: latest
77
secrets: [docker_username, docker_password]
8-
when:
9-
event: push
10-
branch: [master, main]
8+
when:
9+
event: push
10+
branch: [master, main]

.woodpecker/.release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ pipeline:
55
repo: "${CI_REPO_OWNER##mu-}/${CI_REPO_NAME}"
66
tags: "${CI_COMMIT_TAG##v}"
77
secrets: [ docker_username, docker_password ]
8-
when:
9-
event: tag
10-
tag: v*
8+
when:
9+
event: tag
10+
tag: v*

0 commit comments

Comments
 (0)