Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$TARGETPLATFORM golang:1.24.0-bookworm AS base

Check warning on line 1 in build/Dockerfile

View workflow job for this annotation

GitHub Actions / Build a Docker image (linux/arm64/v8)

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior

RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 1 in build/Dockerfile

View workflow job for this annotation

GitHub Actions / Build a Docker image (linux/amd64)

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior

RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 1 in build/Dockerfile

View workflow job for this annotation

GitHub Actions / Build a Docker image (linux/arm64)

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior

RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

WORKDIR /ChargePi/src
COPY . /ChargePi/src
Expand Down Expand Up @@ -39,7 +39,7 @@
RUN npm run build

# Test the client
FROM --platform=$TARGETPLATFORM golang:1.24.0-bookworm AS test

Check warning on line 42 in build/Dockerfile

View workflow job for this annotation

GitHub Actions / Build a Docker image (linux/arm64/v8)

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior

RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 42 in build/Dockerfile

View workflow job for this annotation

GitHub Actions / Build a Docker image (linux/amd64)

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior

RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 42 in build/Dockerfile

View workflow job for this annotation

GitHub Actions / Build a Docker image (linux/arm64)

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior

RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

WORKDIR /ChargePi/src

Expand Down Expand Up @@ -69,9 +69,9 @@
RUN make gen-mocks

# Run tests
ENTRYPOINT ["go", "test","-v","./...","-coverpkg=./...","-short" ,"-coverprofile=unit_coverage.out"]
ENTRYPOINT ["go", "test","-v", "-race", "-covermode=atomic", "./...","-coverpkg=./...","-short" ,"-coverprofile=unit_coverage.out"]

FROM --platform=$TARGETPLATFORM alpine AS chargepi

Check warning on line 74 in build/Dockerfile

View workflow job for this annotation

GitHub Actions / Build a Docker image (linux/arm64/v8)

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior

RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 74 in build/Dockerfile

View workflow job for this annotation

GitHub Actions / Build a Docker image (linux/amd64)

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior

RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 74 in build/Dockerfile

View workflow job for this annotation

GitHub Actions / Build a Docker image (linux/arm64)

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior

RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

WORKDIR /etc/ChargePi

Expand Down
Loading