diff --git a/.github/workflows/release-validation.yml b/.github/workflows/release-validation.yml new file mode 100644 index 00000000..df3cac53 --- /dev/null +++ b/.github/workflows/release-validation.yml @@ -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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da6bf690..8946e6f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 4e5a2037..72a5c1a5 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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 @@ -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 @@ -145,7 +143,7 @@ archives: checksum: name_template: "checksums.txt" snapshot: - name_template: "{{ .Tag }}-next" + version_template: "{{ .Tag }}-next" changelog: sort: asc filters: diff --git a/Taskfile.yml b/Taskfile.yml index f594e780..b0aca252 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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' ] @@ -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/gofumpt@v0.7.0 diff --git a/website/content/docs/releases/gdg_0.7.md b/website/content/docs/releases/gdg_0.7.md index 739f3c11..23c4a425 100644 --- a/website/content/docs/releases/gdg_0.7.md +++ b/website/content/docs/releases/gdg_0.7.md @@ -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/) @@ -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 ``` @@ -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 + +