Compare commits
1 Commits
77c40c879c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| dd56f6260a |
@@ -5,29 +5,33 @@ on:
|
|||||||
- ".gitea/**"
|
- ".gitea/**"
|
||||||
- "pbsclient/**"
|
- "pbsclient/**"
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 16 * * Sun"
|
- cron: "0 16 * * Sun"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build-docker-image:
|
build-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: oci-image-builder
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
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: ./pbsclient
|
||||||
|
dockerfile: ./pbsclient/docker
|
||||||
|
name: git.limbosolutions.com/kb/pbsclient:latest
|
||||||
|
|
||||||
- name: Log in to git.limbosolutions.com docker registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.limbosolutions.com
|
|
||||||
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
|
||||||
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Build and push Docker images
|
|
||||||
id: push
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: ${{gitea.workspace}}/pbsclient
|
|
||||||
file: ${{gitea.workspace}}/pbsclient/docker/Dockerfile
|
|
||||||
push: true
|
|
||||||
tags: git.limbosolutions.com/kb/pbsclient
|
|
||||||
Reference in New Issue
Block a user