From dd56f6260a6ddde4c1c76d118dfdc2f36c7ad130 Mon Sep 17 00:00:00 2001 From: "marcio.fernandes" Date: Sun, 15 Mar 2026 00:25:35 +0000 Subject: [PATCH] feature/buid-Kaniko (#1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Márcio Fernandes Reviewed-on: https://git.limbosolutions.com/kb/proxmox/pulls/1 --- .gitea/workflows/ docker-image.deploy.yml | 54 ++++++++++++----------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/.gitea/workflows/ docker-image.deploy.yml b/.gitea/workflows/ docker-image.deploy.yml index 4802d16..bfee525 100644 --- a/.gitea/workflows/ docker-image.deploy.yml +++ b/.gitea/workflows/ docker-image.deploy.yml @@ -5,29 +5,33 @@ on: - ".gitea/**" - "pbsclient/**" schedule: - - cron: "0 16 * * Sun" -jobs: - - build-docker-image: - runs-on: ubuntu-latest - - steps: - - - name: Checkout code - uses: actions/checkout@v4 - - - 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 }} + - cron: "0 16 * * Sun" + +jobs: + + build-image: + runs-on: oci-image-builder + 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: ./pbsclient + dockerfile: ./pbsclient/docker + name: git.limbosolutions.com/kb/pbsclient:latest + - - 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 \ No newline at end of file