Re-added hamview-receiver
Some checks failed
Test and build / Build receiver (push) Failing after 45s
Test and build / test (push) Successful in 59s
Test and build / Build collector (push) Failing after 1m16s

This commit is contained in:
2026-02-23 21:15:48 +01:00
parent d8715eaaaa
commit 227477d17f
11 changed files with 333 additions and 36 deletions

View File

@@ -24,22 +24,29 @@ jobs:
name: Build collector
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
- name: Checkout
uses: actions/checkout@v6
- name: Setup Go
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
run: mkdir -p build
- name: Build
run: go build -o build/hamview-collector ./cmd/hamview-collector && ls -al $(readlink -f build/hamview-collector)
- name: Debug env
run: env
run: |
go build -o build/hamview-collector ./cmd/hamview-collector && \
ls -al $(readlink -f build/hamview-collector)
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into Container Registry
- name: Log into Docker Container Registry
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Log into Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY }}
@@ -49,7 +56,7 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
tags: ham/hamview:collector
tags: ${{ vars.REGISTRY }}/ham/hamview/collector:dev
file: ./cmd/hamview-collector/Dockerfile
context: .
platforms: |
@@ -58,40 +65,52 @@ jobs:
build_receiver:
name: Build receiver
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: linux
goarch: amd64
goarm: ""
- goos: linux
goarch: arm
goarm: "6"
- goos: linux
goarch: arm
goarm: "7"
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
- name: Checkout
uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
check-latest: false
- name: Set target variables
run: |
echo "GOOS=${{ matrix.goos }}" >> $GITHUB_ENV
echo "GOARCH=${{ matrix.goarch }}" >> $GITHUB_ENV
if [ -n "${{ matrix.goarm }}" ]; then
echo "GOARM=${{ matrix.goarm }}" >> $GITHUB_ENV
fi
- 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-receiver.${{ matrix.goarch }}${{ matrix.goarm }} ./cmd/hamview-receiver && readlink -f build/hamview-receiver.${{ matrix.goarch }}${{ matrix.goarm }}
- name: Build amd64
env:
GOOS: linux
GOARCH: amd64
run: |
GOOS=$GOOS GOARCH=$GOARCH \
go build -o build/hamview-receiver-$GOARCH cmd/hamview-receiver && \
readlink -f build/hamview-receiver-$GOARCH
- name: Build arm6
env:
GOOS: linux
GOARCH: arm
GOARM: 6
run: |
GOOS=$GOOS GOARCH=$GOARCH GOARM=$GOARM \
go build -o build/hamview-receiver-$GOARCH$GOARM cmd/hamview-receiver && \
readlink -f build/hamview-receiver-$GOARCH$GOARM
- name: Build arm7
env:
GOOS: linux
GOARCH: arm
GOARM: 7
run: |
GOOS=$GOOS GOARCH=$GOARCH GOARM=$GOARM \
go build -o build/hamview-receiver-$GOARCH$GOARM cmd/hamview-receiver && \
readlink -f build/hamview-receiver-$GOARCH$GOARM
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into Container Registry
- name: Log into Docker Container Registry
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Log into Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY }}
@@ -101,7 +120,7 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
tags: ham/hamview:receiver
tags: ${{ vars.REGISTRY }}/ham/hamview/receiver:dev
file: ./cmd/hamview-receiver/Dockerfile
context: .
platforms: |