Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ endif
REPO=planetscale
NAME=pscale
BUILD_PKG=github.com/planetscale/cli/cmd/pscale
GORELEASE_CROSS_VERSION ?= v1.20.1
GORELEASE_CROSS_VERSION ?= v1.20.2
SYFT_VERSION ?= 0.75.0

.PHONY: all
all: build test lint
Expand Down Expand Up @@ -58,6 +59,7 @@ clean:

.PHONY: release
release:
@docker build --build-arg GORELEASE_CROSS_VERSION=$(GORELEASE_CROSS_VERSION) --build-arg SYFT_VERSION=$(SYFT_VERSION) -t releaser -f docker/Dockerfile.goreleaser .
@docker run \
--rm \
-e GITHUB_TOKEN=${GITHUB_TOKEN} \
Expand All @@ -67,5 +69,5 @@ release:
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/${REPO}/${NAME} \
-w /go/src/${REPO}/${NAME} \
ghcr.io/goreleaser/goreleaser-cross:${GORELEASE_CROSS_VERSION} \
releaser \
release --rm-dist ${GORELEASER_EXTRA_ARGS}
5 changes: 5 additions & 0 deletions docker/Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG GORELEASE_CROSS_VERSION=v1.20.2
FROM ghcr.io/goreleaser/goreleaser-cross:${GORELEASE_CROSS_VERSION}

ARG SYFT_VERSION=0.75.0
RUN wget -O syft.deb https://github.com/anchore/syft/releases/download/v${SYFT_VERSION}/syft_${SYFT_VERSION}_linux_amd64.deb && dpkg -i syft.deb