Skip linter for now
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
name: Run tests
|
||||
on:
|
||||
push:
|
||||
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -16,8 +16,43 @@ jobs:
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v9
|
||||
#- name: golangci-lint
|
||||
# uses: golangci/golangci-lint-action@v9
|
||||
# with:
|
||||
# go-version: ${{ matrix.go }}
|
||||
# version: v2.6
|
||||
|
||||
build:
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
version: v2.6
|
||||
go-version: stable
|
||||
- name: Download modules
|
||||
run: go mod download -v
|
||||
- name: Make build directory
|
||||
run: mkdir -p build
|
||||
- name: Build hamview-collector
|
||||
run: go build -o build/ -v ./cmd/hamview-collector
|
||||
- name: Build hamview-receiver
|
||||
run: go build -o build/ -v ./cmd/hamview-receiver
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Log into Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY}}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build and push collector container
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: hamview/collector:latest
|
||||
context: cmd/hamview-collector
|
||||
- name: Build and push receiver container
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: hamview/receiver:latest
|
||||
context: cmd/hamview-receiver
|
||||
|
||||
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -2,4 +2,4 @@
|
||||
"gopls": {
|
||||
"formatting.local": "git.maze.io"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
6
cmd/hamview-collector/Dockerfile
Normal file
6
cmd/hamview-collector/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
||||
FROM alpine:3
|
||||
WORKDIR /opt/hamview
|
||||
COPY ../../etc /etc/hamview
|
||||
COPY ../../build/hamview-collector /opt/hamview/bin/hamview-collector
|
||||
ENTRYPOINT ["bin/hamview-collector"]
|
||||
CMD [ "executable" ]
|
||||
6
cmd/hamview-receiver/Dockerfile
Normal file
6
cmd/hamview-receiver/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
||||
FROM alpine:3
|
||||
WORKDIR /opt/hamview
|
||||
COPY ../../etc /etc/hamview
|
||||
COPY ../../build/hamview-receiver /opt/hamview/bin/hamview-receiver
|
||||
ENTRYPOINT ["bin/hamview-receiver"]
|
||||
CMD [ "protocol" ]
|
||||
@@ -159,7 +159,7 @@ func run(ctx context.Context, command *cli.Command) error {
|
||||
)
|
||||
ON CONFLICT (public_key)
|
||||
DO UPDATE
|
||||
SET
|
||||
SET
|
||||
name = $3,
|
||||
local_time = $4,
|
||||
last_heard = $6,
|
||||
|
||||
Reference in New Issue
Block a user