Split builds
Some checks failed
Test and build / test (push) Successful in 1m1s
Test and build / Build collector (push) Failing after 1m5s
Test and build / Build receiver (amd64, , linux) (push) Failing after 1m8s
Test and build / Build receiver (arm, 6, linux) (push) Failing after 1m8s
Test and build / Build receiver (arm, 7, linux) (push) Failing after 1m7s
Some checks failed
Test and build / test (push) Successful in 1m1s
Test and build / Build collector (push) Failing after 1m5s
Test and build / Build receiver (amd64, , linux) (push) Failing after 1m8s
Test and build / Build receiver (arm, 6, linux) (push) Failing after 1m8s
Test and build / Build receiver (arm, 7, linux) (push) Failing after 1m7s
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user