Skip to content

Commit

Permalink
should fix error in release workflow (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Vanbuskirk committed Apr 11, 2023
1 parent cf326c5 commit 86c7df4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.19'
go-version: '1.20'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
Expand Down
14 changes: 3 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
FROM --platform=${BUILDPLATFORM} golang:bullseye as builder

WORKDIR /build
COPY . .
ENV CGO_ENABLED=0
ARG TARGETOS TARGETARCH
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o gcp-auditor .

FROM alpine:3.17

RUN apk add --no-cache git ca-certificates \
&& rm -rf /var/cache/apk/* && \
update-ca-certificates
COPY --from=builder /build/gcp-auditor /usr/bin/gcp-auditor
WORKDIR /usr/bin/
COPY gcp-auditor .
ENTRYPOINT ["/usr/bin/gcp-auditor"]

0 comments on commit 86c7df4

Please sign in to comment.