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 }}
|
# go-version: ${{ matrix.go }}
|
||||||
# version: v2.6
|
# 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
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -50,29 +83,17 @@ jobs:
|
|||||||
- name: Download modules
|
- name: Download modules
|
||||||
run: go mod download
|
run: go mod download
|
||||||
- name: Make build directory
|
- name: Make build directory
|
||||||
run: mkdir -p build
|
run: mkdir -p build && readlink -f build
|
||||||
- name: Build hamview-collector
|
- name: Build
|
||||||
run: go build -o build/hamview-collector.${{ matrix.goarch }}${{ matrix.goarm }} -v ./cmd/hamview-collector
|
|
||||||
- name: Build hamview-receiver
|
|
||||||
run: go build -o build/hamview-receiver.${{ matrix.goarch }}${{ matrix.goarm }} -v ./cmd/hamview-receiver
|
run: go build -o build/hamview-receiver.${{ matrix.goarch }}${{ matrix.goarm }} -v ./cmd/hamview-receiver
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: Show env
|
|
||||||
run: env
|
|
||||||
- name: Log into Container Registry
|
- name: Log into Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ vars.REGISTRY }}
|
registry: ${{ vars.REGISTRY }}
|
||||||
username: ${{ vars.DEPLOY_USER }}
|
username: ${{ vars.DEPLOY_USER }}
|
||||||
password: ${{ secrets.DEPLOY_TOKEN }}
|
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
|
- name: Build and push receiver container
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user