Skip to content

Commit

Permalink
Add homebrew docs (#106)
Browse files Browse the repository at this point in the history
* docs: Add homebrew download and my docker registry

* ci: Use cross compilation for building

* chore: Reduce homebrew description
  • Loading branch information
Cyb3r-Jak3 authored Sep 17, 2024
1 parent 7ee2307 commit dbf2d09
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions cmd/cloudflare-utils/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
-
Expand All @@ -101,7 +101,7 @@ nfpms:
homepage: https://cloudflare-utils.cyberjake.xyz/
maintainer: Cyb3rJak3 <[email protected]>
description: *description
license: Apache 2.0
license: &license Apache-2.0
formats:
- apk
- deb
Expand Down Expand Up @@ -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:
Expand Down
8 changes: 5 additions & 3 deletions dist.Dockerfile
Original file line number Diff line number Diff line change
@@ -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 /
Expand Down
2 changes: 2 additions & 0 deletions documentation/docs/started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dbf2d09

Please sign in to comment.