Skip to content

Commit

Permalink
Removing depreacted directives (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
safaci2000 authored Sep 11, 2024
1 parent 2578044 commit 5e5f2a2
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 11 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Validating Release of GDG on Tag
on:
push:
branches:
- master

jobs:
validate_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.1'
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: "~> v2" ## or latest, nightly
args: build --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
version: "~> v2" ## or latest, nightly
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 3 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
version: 2
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy

source:
rlcp: true


builds:
- id: gdg
Expand Down Expand Up @@ -114,7 +112,7 @@ brews:
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
directory: Formula
repository:
owner: esnet
name: homebrew-gdg
Expand Down Expand Up @@ -145,7 +143,7 @@ archives:
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
Expand Down
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ vars:
LD_FLAGS: "-s -w -X github.com/esnet/gdg/internal/version.GitCommit={{ .GIT_COMMIT}}{{ .GIT_DIRTY}} -X github.com/esnet/gdg/internal/version.BuildDate={{ .BUILD_DATE }} "
LEFTHOOK_VERSION: "v1.7.13"
MOCKERY_VERSION: "v2.42.0"
RELEASER_VERSION: "v1.24.0"
RELEASER_VERSION: "v2.2.0"

dotenv: [ '.env' ]

Expand All @@ -26,7 +26,7 @@ tasks:
- go install github.com/securego/gosec/v2/cmd/gosec@latest
- go install golang.org/x/vuln/cmd/govulncheck@latest
- go install github.com/vektra/mockery/v2@{{ .MOCKERY_VERSION}}
- go install github.com/goreleaser/goreleaser@{{ .RELEASER_VERSION }}
- go install github.com/goreleaser/goreleaser/v2@{{ .RELEASER_VERSION }}
- go install github.com/evilmartians/lefthook@{{ .LEFTHOOK_VERSION }}
- go install mvdan.cc/[email protected]

Expand Down
15 changes: 12 additions & 3 deletions website/content/docs/releases/gdg_0.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ images: [ ]
weight: 196
toc: true
---

## Release Notes for v0.7.0

Issues with go releaser process. No ChangeLog

## Release Notes for v0.7.1

Major features in this release are:
- Improvement in performance when dealing with multiple organizations users and preference management.
- Support for nested folders which affects folders, folder permissions, and dashboards. See blog post [here](https://software.es.net/gdg/docs/tutorials/working-with-nested-folders/)
Expand All @@ -22,17 +27,17 @@ Additionally, api_debug has been introduced. When enabled it will print every r
- Folder Permissions are now saving as slug of nested folder path rather than folder name. Nested folder allows for name collisions, so foobar/dummy/abcd ==> foobar-dummy-abcd.json
- Config: ignore_dashboard_filters property has been renamed to dashboard_settings.ignore_filters.

previously
Previous behavior:
```yaml
filter_override:
ignore_dashboard_filters: true
```
has been deprecated in favor of
has been deprecated in favor of
```yaml
dashboard_settings:
ignore_filters: true
ignore_filters: true

```

Expand All @@ -53,3 +58,7 @@ Additionally, api_debug has been introduced. When enabled it will print every r
### Developer Changes
- Upgraded to latest grafana openapi client.
- [#269](https://github.com/esnet/gdg/issues/269) Adding a google analytics tracking on the gdg website.

## Release Notes for v0.7.0


0 comments on commit 5e5f2a2

Please sign in to comment.