Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ on:
# to be used by fork patch-releases ^^
- 'v*.*.*-*'
workflow_dispatch:
inputs:
publish_artifacts:
description: 'Publish Artifacts (not dry-run)'
required: true
type: boolean

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v1
uses: AdityaGarg8/remove-unwanted-software@v4
with:
remove-dotnet: 'true'
remove-android: 'true'
Expand All @@ -32,12 +37,12 @@ jobs:
fetch-depth: 0

- name: dockerhub-login
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB }}
password: ${{ secrets.DOCKERHUB_KEY }}
- name: ghcr-login
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -50,16 +55,20 @@ jobs:
echo "tag_name=${TAG}" >> $GITHUB_OUTPUT

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- run: echo ${{ steps.prepare.outputs.tag_name }}

- name: Run GoReleaser
- name: Release publish_artifacts=${{ inputs.publish_artifacts }}
run: |
make release
if ${{ inputs.publish_artifacts }}; then
make release
else
make release-dry-run
fi
docker images
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.prepare.outputs.tag_name }}
DOCKER_USERNAME: ${{ secrets.DOCKERHUB }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }}
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ install:
@ls -al "$(DIST)"

PACKAGE_NAME := github.com/erigontech/erigon
GOLANG_CROSS_VERSION ?= v1.22.4
GOLANG_CROSS_VERSION ?= v1.21.5


.PHONY: release-dry-run
release-dry-run: git-submodules
Expand Down