Skip to content

Commit 86c7df4

Browse files
author
Mike Vanbuskirk
authored
should fix error in release workflow (#14)
1 parent cf326c5 commit 86c7df4

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up Go
3131
uses: actions/setup-go@v4
3232
with:
33-
go-version: '1.19'
33+
go-version: '1.20'
3434
- name: Run GoReleaser
3535
uses: goreleaser/goreleaser-action@v4
3636
with:

Dockerfile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
FROM --platform=${BUILDPLATFORM} golang:bullseye as builder
2-
3-
WORKDIR /build
4-
COPY . .
5-
ENV CGO_ENABLED=0
6-
ARG TARGETOS TARGETARCH
7-
RUN --mount=type=cache,target=/go/pkg/mod \
8-
--mount=type=cache,target=/root/.cache/go-build \
9-
GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o gcp-auditor .
10-
111
FROM alpine:3.17
2+
123
RUN apk add --no-cache git ca-certificates \
134
&& rm -rf /var/cache/apk/* && \
145
update-ca-certificates
15-
COPY --from=builder /build/gcp-auditor /usr/bin/gcp-auditor
6+
WORKDIR /usr/bin/
7+
COPY gcp-auditor .
168
ENTRYPOINT ["/usr/bin/gcp-auditor"]

0 commit comments

Comments
 (0)