allzweckcontainer/.woodpecker/build.yml
Michael Grote cfce48fb16 SemVer-Tags (#15)
Reviewed-on: #15
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2024-02-02 21:32:34 +01:00

36 lines
847 B
YAML

---
depends_on:
- lint
variables: # https://woodpecker-ci.org/docs/usage/advanced-usage
- &VERSION 'v1.0.${CI_PIPELINE_NUMBER}' # wird für die Docker-Tags verwendet
steps:
selfhosted_tag:
image: "woodpeckerci/plugin-docker-buildx:3.0.1"
settings:
dockerfile: Dockerfile
repo: registry.mgrote.net/allzweckcontainer
registry: registry.mgrote.net
tags:
- ${CI_COMMIT_TAG}
when:
event:
- tag
selfhosted_push:
image: "woodpeckerci/plugin-docker-buildx:3.0.1"
settings:
dockerfile: Dockerfile
repo: registry.mgrote.net/allzweckcontainer
registry: registry.mgrote.net
tags:
- *VERSION
- ${CI_COMMIT_SHA:0:8}
- ${CI_COMMIT_BRANCH}
- latest
when:
event:
exclude:
- pull_request
- tag