ci: replace docker-plugin, set SemVer, remove tag

This commit is contained in:
Michael Grote 2024-02-02 21:57:33 +01:00
parent ebca68b4c3
commit 4fe9bfcc80

View file

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