Rework Dockerfile
Some checks failed
Test and build / test (push) Successful in 1m0s
Test and build / Build collector (push) Failing after 1m6s
Test and build / Build receiver (amd64, , linux) (push) Failing after 1m7s
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 1m0s
Test and build / Build collector (push) Failing after 1m6s
Test and build / Build receiver (amd64, , linux) (push) Failing after 1m7s
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:
@@ -34,12 +34,7 @@ jobs:
|
||||
- name: Make build directory
|
||||
run: mkdir -p build && readlink -f build
|
||||
- name: Build
|
||||
run: go build -o build/hamview-collector ./cmd/hamview-collector && readlink -f build/hamview-collector
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: hamview-collector
|
||||
path: build/hamview-collector
|
||||
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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
FROM alpine:3
|
||||
WORKDIR /opt/hamview
|
||||
COPY /workspace/ham/hamview/etc /etc/hamview
|
||||
COPY /workspace/ham/hamview/build/hamview-collector /opt/hamview/bin/hamview-collector
|
||||
COPY etc /etc/hamview
|
||||
COPY build/hamview-collector /opt/hamview/bin/hamview-collector
|
||||
ENTRYPOINT ["bin/hamview-collector"]
|
||||
CMD [ "executable" ]
|
||||
CMD [ "--config", "/etc/hamview/hamview-collector.yaml" ]
|
||||
|
||||
Reference in New Issue
Block a user