Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for a homebrew #218

Merged
merged 1 commit into from
Nov 3, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}
25 changes: 24 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ nfpms:
package_name: gdg
file_name_template: "{{ .ConventionalFileName }}"
homepage: https://software.es.net/gdg/
maintainer: csgeek <samir+[email protected]>
maintainer: GDG ESNet <[email protected]>
description: |-
GDG is a tool used to manage dashboards, datasources, orgs and various entities of the Grafana application.
license: BSD License
Expand All @@ -53,6 +53,12 @@ nfpms:
dst: /etc/gdg/importer.yml
type: config

universal_binaries:
- replace: true

release:
prerelease: auto


dockers:
-
Expand All @@ -70,6 +76,23 @@ dockers:
skip_push: false
dockerfile: "docker/Dockerfile-gorelease"


brews:
-
name:
homepage: https://software.es.net/gdg
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
description: Grafana Dash-n-Grab (GDG) -- Dashboard/DataSource Manager for grafana supporting backup/restore to local filesystem, s3, gcs, azure, and other S3 compatible storage engines.
folder: Formula
repository:
owner: esnet
name: homebrew-gdg
token: "{{ .Env.HOMEBREW_TOKEN }}"
branch: main
commit_author:
safaci2000 marked this conversation as resolved.
Show resolved Hide resolved
name: GDG ESNet
email: [email protected]

archives:
- name_template: >-
{{ .ProjectName }}_
Expand Down
16 changes: 16 additions & 0 deletions website/content/en/docs/gdg/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The following packages are currently supported:
- RPM
- APK
- Docker
- Brew

### Package Installation

Expand All @@ -20,6 +21,21 @@ rpm -Uvh ./gdg_0.3.1_amd64.rpm
dpkg -i ./gdg_0.3.1_amd64.deb
```

### Homebrew Installation


```sh
brew tap esnet/gdg
brew update
brew install gdg
```

If there is a conflict you can try to be explicit.

```sh
brew install esnet/gdg/gdg
```

### Docker usage

The docker tags are released started with 0.3.1. Each release will generate a major version and minor version tag.
Expand Down
5 changes: 3 additions & 2 deletions website/content/en/docs/releases/current_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ toc: true
### Changes
- TechDebt: Rewriting the CLI flag parsing to allow for easier testing patterns. Should mostly be transparent to the user.
- OrgWatchedFolders added a way to override watched folders for a given organization
- [#93](https://github.com/esnet/gdg/issues/205) Homebrew support added in. First pass at having a homebrew release.

### Bug Fixes
- Tiny patch to fix website documentation navigatioin
- [#205]((https://github.com/esnet/gdg/issues/205) fixes invalid cross-link device when symlink exists to /tmp filesystem.
- [#206]((https://github.com/esnet/gdg/issues/206) fixed behavior issue
- [#205](https://github.com/esnet/gdg/issues/205) fixes invalid cross-link device when symlink exists to /tmp filesystem.
- [#206](https://github.com/esnet/gdg/issues/206) fixed behavior issue

### Developer Changes
- Replaced Makefile with Taskfiles.
Expand Down
Loading