149236e468 would become 1.49236e+09 when passed to the plugin due to
YAML's type coercion (string of a float in scientific -> float).
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
when:
|
|
- event: push
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
path: [ "**/*.ex", "**/*.eex", "**/*.exs", "mix.lock", ".woodpecker/**", "Dockerfile" ]
|
|
- event: tag
|
|
- event: manual
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
- event: manual
|
|
branch: stable
|
|
|
|
depends_on:
|
|
- docker
|
|
|
|
skip_clone: true
|
|
|
|
labels:
|
|
platform: linux/amd64
|
|
|
|
steps:
|
|
docker-develop-combine:
|
|
image: &docker_image git.pleroma.social/phnt/wpc-docker-tagger:0.9.1
|
|
when:
|
|
- event: push
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
- event: manual
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
settings: &docker_settings
|
|
registry: "git.pleroma.social"
|
|
image: "pleroma/pleroma"
|
|
architectures: [amd64, arm64, armv7]
|
|
tags:
|
|
- latest
|
|
- develop
|
|
- "${CI_COMMIT_SHA:0:8}"
|
|
username:
|
|
from_secret: pleroma-ci-user
|
|
password:
|
|
from_secret: pleroma-ci-password
|
|
|
|
docker-stable-combine:
|
|
image: *docker_image
|
|
when:
|
|
- evaluate: 'CI_PIPELINE_EVENT == "manual" && CI_COMMIT_BRANCH == "stable" && CI_COMMIT_TAG == ""'
|
|
settings:
|
|
<<: *docker_settings
|
|
tags: &stable_docker_tags
|
|
- latest
|
|
- stable
|
|
- "${CI_COMMIT_SHA:0:8}"
|
|
|
|
docker-stable-tag-combine:
|
|
image: *docker_image
|
|
when:
|
|
- event: tag
|
|
- evaluate: 'CI_PIPELINE_EVENT == "manual" && CI_COMMIT_BRANCH == "stable" && CI_COMMIT_TAG != ""'
|
|
settings:
|
|
<<: *docker_settings
|
|
tags:
|
|
- <<: *stable_docker_tags
|
|
- "${CI_COMMIT_TAG}"
|