Files
proxmox/.gitea/workflows/ docker-image.deploy.yml
Márcio Fernandes a1370fc79d
Some checks failed
/ build-image (push) Failing after 17s
.
2026-03-14 21:38:59 +00:00

48 lines
1.0 KiB
YAML

on:
push:
paths:
- "docker/**"
- ".gitea/**"
- "pbsclient/**"
schedule:
- cron: "0 16 * * Sun"
jobs:
build-image:
runs-on: oci-image-builder
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Start BuildKit
run: |
buildkitd --oci-worker-no-process-sandbox --root /tmp/buildkit &
sleep 3
- name: Authenticate to Gitea registry
run: |
mkdir -p ~/.docker
AUTH=$(echo -n "${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_PASSWORD }}" | base64)
cat > ~/.docker/config.json <<EOF
{
"auths": {
"git.limbosolutions.com": {
"auth": "$AUTH"
}
}
}
EOF
- name: Build and push image
run: |
ls -lah ./
buildctl build \
--frontend=dockerfile.v0 \
--local context=./pbsclient \
--local dockerfile=./pbsclient/docker \
--output type=image,name=git.limbosolutions.com/kb/pbsclient:latest,push=true