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:
parent
42eb9706a5
commit
eea01b54b7
4 changed files with 14 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ when:
|
|||
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
|
||||
- event: tag
|
||||
branch: stable
|
||||
- event: manual
|
||||
branch: stable
|
||||
|
||||
matrix:
|
||||
platform:
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ when:
|
|||
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
|
||||
- event: tag
|
||||
branch: stable
|
||||
- event: manual
|
||||
branch: stable
|
||||
|
||||
matrix:
|
||||
platform:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue