From 1a4a8a2d4b8264aaf3b9ba2fa3964ade8c4575ea Mon Sep 17 00:00:00 2001 From: "Michael N. Lipp" Date: Sun, 10 Aug 2025 18:24:19 +0200 Subject: [PATCH] Test. --- .woodpecker/publish.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.woodpecker/publish.yaml b/.woodpecker/publish.yaml index 8c47103..5f2a311 100644 --- a/.woodpecker/publish.yaml +++ b/.woodpecker/publish.yaml @@ -1,5 +1,5 @@ when: -- event: manual +- event: tag clone: - name: git @@ -19,14 +19,15 @@ steps: from_secret: REGISTRY_TOKEN commands: + # Because we run this as user 1000 to make podman work: - 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 . + - podman build -t $IMAGE_REF . + - podman push $IMAGE_REF backend_options: kubernetes: securityContext: