diff --git a/README.md b/README.md index a7fc739..b80d7fc 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,12 @@ docker pull cyb3rjak3/cloudflare-utils go install github.com/Cyb3r-Jak3/cloudflare-utils/cmd/cloudflare-utils@latest ``` +### Homebrew + +```bash +brew install cyb3r-jak3/cyberjake/cloudflare-utils +``` + ## Usage Check the [docs](https://cloudflare-utils.cyberjake.xyz/) for more information on how to use the utilities. diff --git a/cmd/cloudflare-utils/.goreleaser.yml b/cmd/cloudflare-utils/.goreleaser.yml index 2e20a70..65e300e 100644 --- a/cmd/cloudflare-utils/.goreleaser.yml +++ b/cmd/cloudflare-utils/.goreleaser.yml @@ -92,7 +92,7 @@ chocolateys: - Deleting all Pages deployments for project - Deleting all Pages deployments before or after a time - Cloudflare and the Cloudflare logo are trademarks and/or registered trademarks of Cloudflare, Inc. in the United States and other jurisdictions. + Cloudflare and the Cloudflare logo are trademarks and/or registered trademarks of Cloudflare, Inc. nfpms: - @@ -101,7 +101,7 @@ nfpms: homepage: https://cloudflare-utils.cyberjake.xyz/ maintainer: Cyb3rJak3 description: *description - license: Apache 2.0 + license: &license Apache-2.0 formats: - apk - deb @@ -140,7 +140,7 @@ release: brews: - name: cloudflare-utils description: *description - license: Apache 2.0 + license: *license homepage: "https://cloudflare-utils.cyberjake.xyz/" directory: Formula repository: diff --git a/dist.Dockerfile b/dist.Dockerfile index 8da91e6..abf0575 100644 --- a/dist.Dockerfile +++ b/dist.Dockerfile @@ -1,12 +1,14 @@ -FROM golang:1.23-alpine AS builder +FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS builder WORKDIR /usr/app ENV CGO_ENABLED=0 RUN --mount=type=cache,target=/var/cache/apk,sharing=locked apk update && apk -U --no-cache add git make build-base ca-certificates && git config --global --add safe.directory '*' COPY . . -RUN go mod download + ENV GOCACHE=/root/.cache/go-build -RUN --mount=type=cache,target="/root/.cache/go-build" make build +ARG TARGETOS +ARG TARGETARCH +RUN --mount=type=cache,target="/root/.cache/go-build" --mount=type=cache,target=/go/pkg GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build FROM scratch COPY --from=builder /usr/app/cloudflare-utils / diff --git a/documentation/docs/started.md b/documentation/docs/started.md index f559a78..313e356 100644 --- a/documentation/docs/started.md +++ b/documentation/docs/started.md @@ -9,7 +9,9 @@ Cloudflare-utils is build for Windows, Mac and Linux and the latest release is a 1. Docker - `cyb3rjak3/cloudflare-utils` - `ghcr.io/cyb3r-jak3/cloudflare-utils` + - `mine.jfrog.cyberjake.xyz/cloudflare-utils` 2. Chocolatey: [cloudflare-utils](https://community.chocolatey.org/packages/cloudflare-utils) +3. Homebrew: `brew install cyb3r-jak3/cyberjake/cloudflare-utils` ## Authentication