name: Build with Kaniko (Clean & Fixed) on: push: branches: [ main ] workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Build and Push uses: docker://gcr.io/kaniko-project/executor:v1.23.2-debug with: entrypoint: /busybox/sh args: >- -c " HOST='gitea-http.gitea.svc.cluster.local:3000'; RAW_USER='${{ gitea.actor }}'; LOWER_USER=$(echo $RAW_USER | tr '[:upper:]' '[:lower:]'); PASS='${{ secrets.PACKAGES_TOKEN }}'; echo \"DEBUG: Host=\$HOST User=\$LOWER_USER\"; AUTH_STR=$(echo -n \"${RAW_USER}:${PASS}\" | base64 | tr -d '\n'); echo \"{\\\"auths\\\":{\\\"\$HOST\\\":{\\\"auth\\\":\\\"\$AUTH_STR\\\"}}}\" > /kaniko/.docker/config.json; /kaniko/executor --context=. --dockerfile=Dockerfile --destination=\$HOST/\$LOWER_USER/my-docs:latest --destination=\$HOST/\$LOWER_USER/my-docs:${{ github.sha }} --insecure --skip-tls-verify --cache=true "