Woodpecker CI: Allow running stable release jobs manually

Also allows Docker images to be tagged with a version in manual jobs
when CI_COMMIT_TAG is manually specified
This commit is contained in:
Phantasm 2026-04-18 22:28:40 +02:00
commit eea01b54b7
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8
4 changed files with 14 additions and 0 deletions

View file

@ -4,6 +4,8 @@ when:
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
- event: tag
branch: stable
- event: manual
branch: stable
depends_on:
- docker-stable
@ -15,6 +17,7 @@ steps:
image: git.fluffytail.org/phnt/wpc-docker-tagger:latest
when:
- event: push
- evaluate: 'CI_PIPELINE_EVENT == "manual" && CI_COMMIT_TAG == ""'
settings: &docker_settings
registry: "git.fluffytail.org"
image: "pleroma-test/pleroma"
@ -32,6 +35,7 @@ steps:
image: git.fluffytail.org/phnt/wpc-docker-tagger:latest
when:
- event: tag
- evaluate: 'CI_PIPELINE_EVENT == "manual" && CI_COMMIT_TAG != ""'
settings:
<<: *docker_settings
tags:

View file

@ -4,6 +4,8 @@ when:
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
- event: tag
branch: stable
- event: manual
branch: stable
matrix:
platform:
@ -34,6 +36,7 @@ steps:
# https://github.com/woodpecker-ci/woodpecker/discussions/5367#discussioncomment-13901342
when:
- evaluate: 'platform == "linux/amd64" && CI_PIPELINE_EVENT == "push"'
- evaluate: 'platform == "linux/amd64" && CI_PIPELINE_EVENT == "manual" && CI_COMMIT_TAG == ""'
settings:
<<: *docker_variables
tags: &amd64_tags
@ -45,6 +48,7 @@ steps:
image: *kaniko_image
when:
- evaluate: 'platform == "linux/amd64" && CI_PIPELINE_EVENT == "tag"'
- evaluate: 'platform == "linux/amd64" && CI_PIPELINE_EVENT == "manual" && CI_COMMIT_TAG != ""'
settings:
<<: *docker_variables
tags:
@ -55,6 +59,7 @@ steps:
image: *kaniko_image
when:
- evaluate: 'platform == "linux/arm64" && CI_PIPELINE_EVENT == "push"'
- evaluate: 'platform == "linux/arm64" && CI_PIPELINE_EVENT == "manual" && CI_COMMIT_TAG == ""'
settings:
<<: *docker_variables
tags: &arm64_tags
@ -66,6 +71,7 @@ steps:
image: *kaniko_image
when:
- evaluate: 'platform == "linux/arm64" && CI_PIPELINE_EVENT == "tag"'
- evaluate: 'platform == "linux/arm64" && CI_PIPELINE_EVENT == "manual" && CI_COMMIT_TAG != ""'
settings:
<<: *docker_variables
tags:

View file

@ -4,6 +4,8 @@ when:
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
- event: tag
branch: stable
- event: manual
branch: stable
matrix:
platform:

View file

@ -4,6 +4,8 @@ when:
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
- event: tag
branch: stable
- event: manual
branch: stable
matrix:
platform: