diff --git a/.woodpecker.yml b/.woodpecker.yml index 9659931..e336b7d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -11,14 +11,14 @@ steps: DOCKER_PASSWORD: from_secret: docker_password commands: - - 'TAG=${CI_COMMIT_SHA:0:8}' - - 'REGISTRY=git.mikhailkilin.ru' - - 'REPO=killingdruid/bcard' - - 'echo "Building $REGISTRY/$REPO:$TAG"' - - 'AUTH=$(echo -n "$DOCKER_USERNAME:$DOCKER_PASSWORD" | base64)' - - 'mkdir -p /kaniko/.docker' + - TAG=${CI_COMMIT_SHA:0:8} + - REGISTRY=git.mikhailkilin.ru + - REPO=killingdruid/bcard + - echo "Building $REGISTRY/$REPO:$TAG" + - AUTH=$(echo -n "$DOCKER_USERNAME:$DOCKER_PASSWORD" | base64) + - mkdir -p /kaniko/.docker - 'printf "{\"auths\":{\"%s\":{\"auth\":\"%s\"}}}" "$REGISTRY" "$AUTH" > /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 2>&1 || echo "KANIKO EXIT CODE: $?"' + - /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 image: alpine