-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing depreacted directives (#300)
- Loading branch information
1 parent
2578044
commit 5e5f2a2
Showing
5 changed files
with
52 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters