Woodpecker CI: Tag stable docker release with version tag
This commit is contained in:
parent
e002650e23
commit
97a2e8c764
2 changed files with 41 additions and 8 deletions
|
|
@ -13,11 +13,13 @@ skip_clone: true
|
||||||
steps:
|
steps:
|
||||||
docker-stable-combine:
|
docker-stable-combine:
|
||||||
image: git.fluffytail.org/phnt/wpc-docker-tagger:latest
|
image: git.fluffytail.org/phnt/wpc-docker-tagger:latest
|
||||||
settings:
|
when:
|
||||||
|
- event: push
|
||||||
|
settings: &docker_settings
|
||||||
registry: "git.fluffytail.org"
|
registry: "git.fluffytail.org"
|
||||||
image: "pleroma-test/pleroma"
|
image: "pleroma-test/pleroma"
|
||||||
architectures: [amd64, arm64]
|
architectures: [amd64, arm64]
|
||||||
tags:
|
tags: &docker_tags
|
||||||
- latest
|
- latest
|
||||||
- stable
|
- stable
|
||||||
- ${CI_COMMIT_SHA}
|
- ${CI_COMMIT_SHA}
|
||||||
|
|
@ -25,3 +27,13 @@ steps:
|
||||||
from_secret: pleroma-ci-user
|
from_secret: pleroma-ci-user
|
||||||
password:
|
password:
|
||||||
from_secret: pleroma-ci-password
|
from_secret: pleroma-ci-password
|
||||||
|
|
||||||
|
docker-stable-tag-combine:
|
||||||
|
image: git.fluffytail.org/phnt/wpc-docker-tagger:latest
|
||||||
|
when:
|
||||||
|
- event: tag
|
||||||
|
settings:
|
||||||
|
<<: *docker_settings
|
||||||
|
tags:
|
||||||
|
- <<: *docker_tags
|
||||||
|
- ${CI_COMMIT_TAG}
|
||||||
|
|
|
||||||
|
|
@ -23,30 +23,51 @@ variables:
|
||||||
from_secret: pleroma-ci-user
|
from_secret: pleroma-ci-user
|
||||||
password:
|
password:
|
||||||
from_secret: pleroma-ci-password
|
from_secret: pleroma-ci-password
|
||||||
|
kaniko_image: &kaniko_image woodpeckerci/plugin-kaniko:2.3.1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
docker-stable-amd64:
|
docker-stable-amd64:
|
||||||
image: woodpeckerci/plugin-kaniko:2.3.1
|
image: *kaniko_image
|
||||||
# when:
|
# when:
|
||||||
# - platform: linux/amd64
|
# - platform: linux/amd64
|
||||||
# does not work even though it should according to docs
|
# does not work even though it should according to docs
|
||||||
# https://github.com/woodpecker-ci/woodpecker/discussions/5367#discussioncomment-13901342
|
# https://github.com/woodpecker-ci/woodpecker/discussions/5367#discussioncomment-13901342
|
||||||
when:
|
when:
|
||||||
- evaluate: platform == "linux/amd64"
|
- evaluate: 'platform == "linux/amd64" && CI_PIPELINE_EVENT == "push"'
|
||||||
settings:
|
settings:
|
||||||
<<: *docker_variables
|
<<: *docker_variables
|
||||||
tags:
|
tags: &amd64_tags
|
||||||
- latest-amd64
|
- latest-amd64
|
||||||
- stable-amd64
|
- stable-amd64
|
||||||
- ${CI_COMMIT_SHA}-amd64
|
- ${CI_COMMIT_SHA}-amd64
|
||||||
|
|
||||||
docker-stable-arm64:
|
docker-stable-tag-amd64:
|
||||||
image: woodpeckerci/plugin-kaniko:2.3.1
|
image: *kaniko_image
|
||||||
when:
|
when:
|
||||||
- evaluate: platform == "linux/arm64"
|
- evaluate: 'platform == "linux/amd64" && CI_PIPELINE_EVENT == "tag"'
|
||||||
settings:
|
settings:
|
||||||
<<: *docker_variables
|
<<: *docker_variables
|
||||||
tags:
|
tags:
|
||||||
|
- <<: *amd64_tags
|
||||||
|
- ${CI_COMMIT_TAG}-amd64
|
||||||
|
|
||||||
|
docker-stable-arm64:
|
||||||
|
image: *kaniko_image
|
||||||
|
when:
|
||||||
|
- evaluate: 'platform == "linux/arm64" && CI_PIPELINE_EVENT == "push"'
|
||||||
|
settings:
|
||||||
|
<<: *docker_variables
|
||||||
|
tags: &arm64_tags
|
||||||
- latest-arm64
|
- latest-arm64
|
||||||
- stable-arm64
|
- stable-arm64
|
||||||
- ${CI_COMMIT_SHA}-arm64
|
- ${CI_COMMIT_SHA}-arm64
|
||||||
|
|
||||||
|
docker-stable-tag-arm64:
|
||||||
|
image: *kaniko_image
|
||||||
|
when:
|
||||||
|
- evaluate: 'platform == "linux/arm64" && CI_PIPELINE_EVENT == "tag"'
|
||||||
|
settings:
|
||||||
|
<<: *docker_variables
|
||||||
|
tags:
|
||||||
|
- <<: *arm64_tags
|
||||||
|
- ${CI_COMMIT_TAG}-arm64
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue