allzweckcontainer/.woodpecker/build.yml

37 lines
847 B
YAML
Raw Normal View History

2022-08-06 11:07:52 +02:00
---
2023-11-03 19:10:12 +01:00
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
2022-08-06 11:07:52 +02:00
steps:
2023-11-03 19:15:53 +01:00
selfhosted_tag:
image: "woodpeckerci/plugin-docker-buildx:3.0.1"
2023-06-10 11:16:56 +02:00
settings:
dockerfile: Dockerfile
2024-01-11 10:50:18 +01:00
repo: registry.mgrote.net/allzweckcontainer
2023-06-10 11:16:56 +02:00
registry: registry.mgrote.net
tags:
2023-11-03 19:15:16 +01:00
- ${CI_COMMIT_TAG}
2023-06-10 11:16:56 +02:00
when:
event:
- tag
2023-11-03 19:13:36 +01:00
2023-11-03 19:15:53 +01:00
selfhosted_push:
image: "woodpeckerci/plugin-docker-buildx:3.0.1"
2023-11-03 19:13:36 +01:00
settings:
dockerfile: Dockerfile
2024-01-11 10:50:18 +01:00
repo: registry.mgrote.net/allzweckcontainer
2023-11-03 19:13:36 +01:00
registry: registry.mgrote.net
tags:
- *VERSION
2023-11-03 19:15:16 +01:00
- ${CI_COMMIT_SHA:0:8}
- ${CI_COMMIT_BRANCH}
2023-11-03 19:13:36 +01:00
- latest
when:
event:
exclude:
- pull_request
- tag