-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add goreleaser * Add changelog * Update goreleaser * Update docker hub
- Loading branch information
Showing
3 changed files
with
153 additions
and
0 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,35 @@ | ||
# .github/workflows/release.yml | ||
name: goreleaser | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: setup dependencies | ||
uses: actions/setup-go@v2 | ||
|
||
- name: Login to Docker hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Log tag name | ||
run: echo "Build for tag ${{ github.ref_name }}" | ||
|
||
- name: release dry run | ||
run: make release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAG: ${{ github.ref_name }} |
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,105 @@ | ||
env: | ||
- CGO_ENABLED=1 | ||
builds: | ||
- id: suave-geth-darwin-amd64 | ||
binary: suave-geth | ||
main: ./cmd/geth | ||
goarch: | ||
- amd64 | ||
goos: | ||
- darwin | ||
env: | ||
- CC=o64-clang | ||
- CXX=o64-clang++ | ||
flags: | ||
- -trimpath | ||
- id: suave-geth-darwin-arm64 | ||
binary: suave-geth | ||
main: ./cmd/geth | ||
goarch: | ||
- arm64 | ||
goos: | ||
- darwin | ||
env: | ||
- CC=oa64-clang | ||
- CXX=oa64-clang++ | ||
flags: | ||
- -trimpath | ||
- id: suave-geth-linux-amd64 | ||
binary: suave-geth | ||
main: ./cmd/geth | ||
env: | ||
- CC=x86_64-linux-gnu-gcc | ||
- CXX=x86_64-linux-gnu-g++ | ||
goarch: | ||
- amd64 | ||
goos: | ||
- linux | ||
flags: | ||
- -trimpath | ||
ldflags: | ||
- -extldflags "-lc -lrt -lpthread --static" | ||
- id: suave-geth-linux-arm64 | ||
binary: suave-geth | ||
main: ./cmd/geth | ||
goarch: | ||
- arm64 | ||
goos: | ||
- linux | ||
env: | ||
- CC=aarch64-linux-gnu-gcc | ||
- CXX=aarch64-linux-gnu-g++ | ||
flags: | ||
- -trimpath | ||
ldflags: | ||
- -extldflags "-lc -lrt -lpthread --static" | ||
- id: suave-geth-windows-amd64 | ||
binary: suave-geth | ||
main: ./cmd/geth | ||
goarch: | ||
- amd64 | ||
goos: | ||
- windows | ||
env: | ||
- CC=x86_64-w64-mingw32-gcc | ||
- CXX=x86_64-w64-mingw32-g++ | ||
flags: | ||
- -trimpath | ||
- -buildmode=exe | ||
|
||
archives: | ||
- id: w/version | ||
builds: | ||
- suave-geth-darwin-amd64 | ||
- suave-geth-darwin-arm64 | ||
- suave-geth-linux-amd64 | ||
- suave-geth-linux-arm64 | ||
- suave-geth-windows-amd64 | ||
name_template: "suave-geth_v{{ .Version }}_{{ .Os }}_{{ .Arch }}" | ||
wrap_in_directory: false | ||
format: zip | ||
files: | ||
- none* | ||
|
||
dockers: | ||
- dockerfile: ./Dockerfile.suave | ||
use: buildx | ||
goarch: amd64 | ||
goos: linux | ||
build_flag_templates: | ||
- --platform=linux/amd64 | ||
image_templates: | ||
- "ghcr.io/flashbots/suave-geth:{{ .ShortCommit }}" | ||
- "ghcr.io/flashbots/suave-geth:{{ .Tag }}" | ||
- "ghcr.io/flashbots/suave-geth:latest" | ||
|
||
checksum: | ||
name_template: "checksums.txt" | ||
|
||
release: | ||
draft: true | ||
header: | | ||
# 🚀 Features | ||
# 🎄 Enhancements | ||
# 🐞 Notable bug fixes | ||
# 🎠 Community |
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