37 lines
1019 B
YAML
37 lines
1019 B
YAML
on:
|
|
push:
|
|
paths:
|
|
- ".gitea/**"
|
|
- "pbs-client/**"
|
|
schedule:
|
|
- cron: "0 16 * * Sun"
|
|
|
|
jobs:
|
|
|
|
build-image:
|
|
runs-on: ["oci-image-builder", "amd64"]
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Fetch limbo public actions
|
|
env:
|
|
RUNNER_TEMP: "${{ runner.temp }}"
|
|
WORKSPACE: "${{ gitea.workspace }}"
|
|
run: |
|
|
curl -fsSL https://git.limbosolutions.com/kb/gitea/raw/branch/main/cloud-scripts/setup-limbo-actions.sh | bash 2>&1
|
|
|
|
- name: Build and Push Image
|
|
uses: ./.gitea/limbo_actions/buildkit-build-push
|
|
with:
|
|
registry_addr: git.limbosolutions.com
|
|
registry_username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
|
registry_password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
|
buildkit_addr: tcp://buildkitd.buildkit.svc.cluster.local:1234
|
|
context: ./pbs-client
|
|
dockerfile: ./pbs-client/docker
|
|
name: git.limbosolutions.com/kb/pbs-client:latest
|
|
|
|
|