diff --git a/.github/workflows/container_build.yml b/.github/workflows/container_build.yml index e649fd5..e814d45 100644 --- a/.github/workflows/container_build.yml +++ b/.github/workflows/container_build.yml @@ -10,7 +10,6 @@ on: - v* env: IMAGE_NAME: fakes3pp - NO_TESTING_BACKENDS: "GithubAction" jobs: # This pushes the image to GitHub Packages. diff --git a/Dockerfile b/Dockerfile index 311305e..d1fa66b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ WORKDIR /usr/src/fakes3pp RUN go mod download RUN go mod tidy ADD . /usr/src/fakes3pp/ +ENV NO_TESTING_BACKENDS=container_build RUN go test -coverprofile cover.out ./... RUN go vet RUN CGO_ENABLED=0 GOOS=linux go build -o main .