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: Authenticate to Gitea registry run: | mkdir -p ~/.docker AUTH=$(printf "%s" "${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}:${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}" | base64 -w 0) printf '{"auths":{"git.limbosolutions.com":{"auth":"%s"}}}' "$AUTH" > ~/.docker/config.json - name: Build and push image run: | buildctl \ --addr unix:///run/buildkit/buildkitd.sock \ build \ --frontend=dockerfile.v0 \ --local context=./pbsclient \ --local dockerfile=./pbsclient/docker \ --opt filename=Dockerfile \ --output type=image,name=git.limbosolutions.com/kb/pbsclient:latest,push=true