debug kaniko build step
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2026-02-14 23:16:43 +00:00
parent fc56ba806b
commit 06705544db

View File

@@ -12,13 +12,18 @@ steps:
from_secret: docker_password from_secret: docker_password
entrypoint: ["/busybox/sh", "-c"] entrypoint: ["/busybox/sh", "-c"]
commands: commands:
- TAG=${CI_COMMIT_SHA:0:8} - set -e
- echo "CI_WORKSPACE=$CI_WORKSPACE"
- echo "PWD=$(pwd)"
- ls -la
- TAG=$(echo $CI_COMMIT_SHA | cut -c1-8)
- REGISTRY=git.mikhailkilin.ru - REGISTRY=git.mikhailkilin.ru
- REPO=killingdruid/bcard - REPO=killingdruid/bcard
- echo "Building $REGISTRY/$REPO:$TAG" - echo "Building $REGISTRY/$REPO:$TAG"
- AUTH=$(echo -n "$DOCKER_USERNAME:$DOCKER_PASSWORD" | base64) - AUTH=$(echo -n "$DOCKER_USERNAME:$DOCKER_PASSWORD" | /busybox/base64)
- mkdir -p /kaniko/.docker - mkdir -p /kaniko/.docker
- 'printf "{\"auths\":{\"%s\":{\"auth\":\"%s\"}}}" "$REGISTRY" "$AUTH" > /kaniko/.docker/config.json' - echo "{\"auths\":{\"git.mikhailkilin.ru\":{\"auth\":\"$AUTH\"}}}" > /kaniko/.docker/config.json
- cat /kaniko/.docker/config.json
- /kaniko/executor --context=$CI_WORKSPACE --dockerfile=$CI_WORKSPACE/Dockerfile --destination=$REGISTRY/$REPO:$TAG --destination=$REGISTRY/$REPO:latest --insecure --skip-tls-verify --verbosity=info - /kaniko/executor --context=$CI_WORKSPACE --dockerfile=$CI_WORKSPACE/Dockerfile --destination=$REGISTRY/$REPO:$TAG --destination=$REGISTRY/$REPO:latest --insecure --skip-tls-verify --verbosity=info
- name: update-manifests - name: update-manifests