diff --git a/Dockerfile b/Dockerfile index 18b49fc9..b8969af7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,8 @@ # builder stage FROM registry.suse.com/bci/golang:1.23 AS builder -RUN zypper --non-interactive install make bash wget ca-certificates - -RUN go install github.com/goreleaser/goreleaser/v2@latest +RUN echo -e "[goreleaser]\nname=GoReleaser\nbaseurl=https://repo.goreleaser.com/yum/\nenabled=1\ngpgcheck=0" > /etc/zypp/repos.d/GoReleaser.repo +RUN zypper --non-interactive install make bash wget git goreleaser ca-certificates COPY . /build WORKDIR /build diff --git a/Makefile b/Makefile index f0dcaea3..5adc0b77 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ build-all: install fmt vet test install: rm -rf $(BINARIES_DIRECTORY) mkdir -p $(BINARIES_DIRECTORY) - wget -P $(BINARIES_DIRECTORY) https://github.com/hauler-dev/cosign/releases/download/$(COSIGN_VERSION)/cosign-$(shell go env GOOS)-$(shell go env GOARCH) + date > $(BINARIES_DIRECTORY)/date.txt go mod tidy go mod download CGO_ENABLED=0 go install ./cmd/...