From efec822ad2bba2b89d5920563d5756e9a90256b1 Mon Sep 17 00:00:00 2001 From: maze Date: Mon, 23 Feb 2026 12:49:53 +0100 Subject: [PATCH] Split builds --- .gitea/workflows/build.yaml | 51 ++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 9ea15fd..4f00ebc 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -20,7 +20,40 @@ jobs: # go-version: ${{ matrix.go }} # version: v2.6 - build: + build_collector: + name: Build collector + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-go@v6 + with: + go-version-file: 'go.mod' + check-latest: false + - name: Download modules + run: go mod download + - name: Make build directory + run: mkdir -p build && readlink -f build + - name: Build + run: go build -o build/hamview-collector -v ./cmd/hamview-collector + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Log into Container Registry + uses: docker/login-action@v3 + with: + registry: ${{ vars.REGISTRY }} + username: ${{ vars.DEPLOY_USER }} + password: ${{ secrets.DEPLOY_TOKEN }} + - name: Build and push collector container + uses: docker/build-push-action@v6 + with: + push: true + tags: hamview/collector:latest + context: cmd/hamview-collector + platforms: | + linux/amd64 + + build_receiver: + name: Build receiver runs-on: ubuntu-latest strategy: matrix: @@ -50,29 +83,17 @@ jobs: - name: Download modules run: go mod download - name: Make build directory - run: mkdir -p build - - name: Build hamview-collector - run: go build -o build/hamview-collector.${{ matrix.goarch }}${{ matrix.goarm }} -v ./cmd/hamview-collector - - name: Build hamview-receiver + run: mkdir -p build && readlink -f build + - name: Build run: go build -o build/hamview-receiver.${{ matrix.goarch }}${{ matrix.goarm }} -v ./cmd/hamview-receiver - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Show env - run: env - name: Log into Container Registry uses: docker/login-action@v3 with: registry: ${{ vars.REGISTRY }} username: ${{ vars.DEPLOY_USER }} password: ${{ secrets.DEPLOY_TOKEN }} - - name: Build and push collector container - uses: docker/build-push-action@v6 - with: - push: true - tags: hamview/collector:latest - context: cmd/hamview-collector - platforms: | - linux/amd64 - name: Build and push receiver container uses: docker/build-push-action@v6 with: