allzweckcontainer/.woodpecker/build.yml
2023-11-03 19:13:36 +01:00

34 lines
715 B
YAML

---
kind: pipeline
type: docker
name: docker_build
depends_on:
- lint
steps:
docker_build_and_push_selfhosted_tag:
image: plugins/docker
settings:
dockerfile: Dockerfile
repo: registry.mgrote.net/allzweckcontainer
registry: registry.mgrote.net
tags:
- ${DRONE_TAG}
when:
event:
- tag
docker_build_and_push_selfhosted:
image: plugins/docker
settings:
dockerfile: Dockerfile
repo: registry.mgrote.net/allzweckcontainer
registry: registry.mgrote.net
tags:
- ${DRONE_COMMIT_SHA:0:8}
- ${DRONE_COMMIT_BRANCH}
- latest
when:
event:
exclude:
- pull_request
- tag