diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 84456ba..e0f0322 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,26 +1,23 @@ -name: Remote BuildKit Build +on: -on: [push] + push: + branches: + + - main jobs: build: - # This must match one of the labels defined in the Deployment above - - runs-on: buildkit + runs-on: ["buildkit"] steps: - - name: Checkout + - uses: actions/checkout@v4 - uses: actions/checkout@v4 - - - - - name: Install Buildctl (if missing) + - name: Install buildctl run: | @@ -28,13 +25,13 @@ jobs: echo "Installing buildctl..." - wget -qO- https://github.com/moby/buildkit/releases/download/v0.12.5/buildkit-v0.12.5.linux-amd64.tar.gz | tar -xz -C /usr/local/bin --strip-components=1 bin/buildctl + wget -qO- https://github.com/moby/buildkit/releases/download/v0.12.5/buildkit-v0.12.5.linux-amd64.tar.gz \ + + | tar -xz -C /usr/local/bin --strip-components=1 bin/buildctl fi - - - - name: Build and Push via Remote BuildKit + - name: Build and Push run: |