32 lines
757 B
YAML
32 lines
757 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: int128/kaniko-action@v1
|
|
with:
|
|
registry: git.limbosolutions.com
|
|
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
|
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
|
|
|
# Build context and Dockerfile
|
|
context: ./pbsclient
|
|
dockerfile: ./pbsclient/docker/Dockerfile
|
|
|
|
# Image destination
|
|
destination: git.limbosolutions.com/kb/pbsclient:latest |