Skip to content

Commit

Permalink
improved workflow performance (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbradys authored Oct 1, 2024
1 parent 9f7229a commit 25d8cb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/...
Expand Down

0 comments on commit 25d8cb8

Please sign in to comment.