From d909c0cd480d5be2c120d07cc6d3aeef818e05f1 Mon Sep 17 00:00:00 2001 From: Bensch Date: Tue, 24 Feb 2026 13:54:33 +0000 Subject: [PATCH] init --- .gitea/workflows/build.yaml | 60 +++++++++++++++++++++++++++++++------ 1 file changed, 51 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 91a5e2c..f794d60 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,9 +1,51 @@ -- name: Build via remote BuildKit - run: | - buildctl \ - --addr tcp://buildkit.default.svc.cluster.local:1234 \ - build \ - --frontend dockerfile.v0 \ - --local context=. \ - --local dockerfile=. \ - --output type=image,name=registry/myapp:latest,push=true +name: Build and Push + +on: [push] + + + +jobs: + + build: + + runs-on: buildkit # Matches the label you just fixed! + + steps: + + - name: Checkout + + uses: actions/checkout@v4 + + + + - name: Build via remote BuildKit + + run: | + + # 1. Provide Registry Credentials + + # BuildKit needs a ~/.docker/config.json to push to a private registry. + + # If your registry is public or uses Node-level auth, you can skip this. + + mkdir -p ~/.docker + + echo '{"auths":{"registry.yourdomain.com":{"auth":"$(echo -n "username:password" | base64)"}}}' > ~/.docker/config.json + + + + # 2. Execute Build + + buildctl \ + + --addr tcp://buildkit.default.svc.cluster.local:1234 \ + + build \ + + --frontend dockerfile.v0 \ + + --local context=. \ + + --local dockerfile=. \ + + --output type=image,name=registry/myapp:latest,push=true