36 lines
854 B
YAML
36 lines
854 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: Login to Gitea registry
|
|
run: |
|
|
echo "${{ secrets.REGISTRY_PASSWORD }}" | \
|
|
docker login git.limbosolutions.com \
|
|
--username "${{ secrets.REGISTRY_USERNAME }}" \
|
|
--password-stdin
|
|
|
|
- name: Build and push image
|
|
run: |
|
|
buildctl build \
|
|
--frontend=dockerfile.v0 \
|
|
--local context=/pbsclient \
|
|
--local dockerfile=./pbsclient/docker/Dockerfile \
|
|
--output type=image,name=git.limbosolutions.com/kb/pbsclient:latest,push=true
|
|
|