Files
proxmox/.gitea/workflows/ docker-image.deploy.yml
Márcio Fernandes ef75abf497
Some checks failed
/ build-image (push) Failing after 3s
modified: .gitea/workflows/ docker-image.deploy.yml
2026-03-14 21:35:20 +00:00

43 lines
985 B
YAML

on:
push:
paths:
- "docker/**"
- ".gitea/**"
- "pbsclient/**"
schedule:
- cron: "0 16 * * Sun"
jobs:
build-image:
runs-on: oci-image-builder
steps:
- 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: |
buildctl build \
--frontend=dockerfile.v0 \
--local context=./pbsclient \
--local dockerfile=./pbsclient/docker \
--output type=image,name=git.limbosolutions.com/kb/pbsclient:latest,push=true