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: