jdk21-builder/.woodpecker/publish.yaml
Michael N. Lipp 5398059bb1
All checks were successful
ci/woodpecker/manual/publish Pipeline was successful
Test.
2025-08-10 18:14:12 +02:00

35 lines
824 B
YAML

when:
- event: manual
clone:
- name: git
image: woodpeckerci/plugin-git
settings:
partial: false
tags: true
depth: 0
steps:
- name: publish
image: quay.io/podman/stable
environment:
REGISTRY: registry.mnl.de
REGISTRY_USER: mnl
REGISTRY_TOKEN:
from_secret: REGISTRY_TOKEN
commands:
- git config --global --add safe.directory $(pwd)
- git describe --tags
- export IMAGE_TAG=$(git describe --tags)
- echo $IMAGE_TAG
- export IMAGE_REF="$REGISTRY/$REGISTRY_USER/jdk21-builder:$IMAGE_TAG"
- echo $REGISTRY_TOKEN | podman login -u $REGISTRY_USER --password-stdin $REGISTRY
- echo Building image $IMAGE_REF
# - podman build -t $IMAGE_TAG .
backend_options:
kubernetes:
securityContext:
privileged: true
runAsUser: 1000
runAsGroup: 1000