32 lines
767 B
YAML
32 lines
767 B
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: Build and push image with Kaniko
|
|
uses: aevea/action-kaniko@v1
|
|
with:
|
|
registry: git.limbosolutions.com
|
|
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
|
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
|
|
|
# Path to the Dockerfile and build context
|
|
dockerfile: pbsclient/docker/Dockerfile
|
|
path: pbsclient
|
|
|
|
# Final image destination
|
|
destination: git.limbosolutions.com/kb/pbsclient:latest
|