Skip to content

Commit

Permalink
Revert nightly releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt committed Feb 20, 2024
1 parent 480a965 commit f366102
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 84 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/release-nightly.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ jobs:
- name: Create release
run: make release
env:
GORELEASER_KEY: ${{ secrets.GORELEASERPRO_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.ref_name }}
33 changes: 6 additions & 27 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,8 @@ dockers:
- --platform=linux/amd64
image_templates:
- "flashbots/suave-geth:{{ .ShortCommit }}-amd64"
- "flashbots/suave-geth:v{{ .Version }}-amd64"
{{- if .IsNightly }}
- flashbots/suave-geth:latest-nightly-amd64
{{ else }}
- flashbots/suave-geth:latest-amd64
{{- end }}
- "flashbots/suave-geth:{{ .Tag }}-amd64"
- "flashbots/suave-geth:latest-amd64"
- dockerfile: ./Dockerfile.suave
use: buildx
goarch: arm64
Expand All @@ -110,12 +106,8 @@ dockers:
- --platform=linux/arm64
image_templates:
- "flashbots/suave-geth:{{ .ShortCommit }}-arm64"
- "flashbots/suave-geth:v{{ .Version }}-arm64"
{{- if .IsNightly }}
- flashbots/suave-geth:latest-nightly-arm64
{{ else }}
- flashbots/suave-geth:latest-arm64
{{- end }}
- "flashbots/suave-geth:{{ .Tag }}-arm64"
- "flashbots/suave-geth:latest-arm64"

docker_manifests:
- name_template: "flashbots/suave-geth:{{ .ShortCommit }}"
Expand All @@ -126,23 +118,10 @@ docker_manifests:
image_templates:
- "flashbots/suave-geth:{{ .Tag }}-amd64"
- "flashbots/suave-geth:{{ .Tag }}-arm64"
{{- if .IsNightly }}
- name_template: "flashbots/suave-geth:latest-nightly"
image_templates:
- "flashbots/suave-geth:latest-nightly-amd64"
- "flashbots/suave-geth:latest-nightly-arm64"
{{ else }}
- name_template: "flashbots/suave-geth:latest"
image_templates:
- "flashbots/suave-geth:latest-amd64"
- "flashbots/suave-geth:latest-arm64"
{{- end }}

nightly:
name_template: "{{ incpatch .Version }}-nightly"
tag_name: latest-nightly
publish_release: true
keep_single_release: true
- "flashbots/suave-geth:latest-amd64"
- "flashbots/suave-geth:latest-arm64"

checksum:
name_template: "checksums.txt"
Expand Down
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,14 @@ fmt-contracts:
cd suave && forge fmt

release:
./scripts/release.sh
docker run \
--rm \
-e CGO_ENABLED=1 \
-e GITHUB_TOKEN="$(GITHUB_TOKEN)" \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(HOME)/.docker/config.json:/root/.docker/config.json \
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-v `pwd`/sysroot:/sysroot \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:v1.19.5 \
release --clean --auto-snapshot
22 changes: 0 additions & 22 deletions scripts/release.sh

This file was deleted.

0 comments on commit f366102

Please sign in to comment.