mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
52d3526b64
Mitigate [no space left on device](https://github.com/ledgerwatch/erigon/actions/runs/6493703302/job/17639876934) in GoReleaser. See https://github.com/AdityaGarg8/remove-unwanted-software. This is a simplified version of PR #8451 (there I had to add `root-reserve-mb: 16384` to make it work).
65 lines
1.6 KiB
YAML
65 lines
1.6 KiB
YAML
name: Release
|
|
|
|
# Uncomment the following to let goreleaser automatically
|
|
# create a GitHub release when a tag is pushed.
|
|
# permissions:
|
|
# contents: write
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- '**'
|
|
tags:
|
|
- 'v*.*.*'
|
|
# to be used by fork patch-releases ^^
|
|
- 'v*.*.*-*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Maximize build space
|
|
uses: AdityaGarg8/remove-unwanted-software@v1
|
|
with:
|
|
remove-dotnet: 'true'
|
|
remove-android: 'true'
|
|
remove-haskell: 'true'
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: dockerhub-login
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB }}
|
|
password: ${{ secrets.DOCKERHUB_KEY }}
|
|
- name: ghcr-login
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Prepare
|
|
id: prepare
|
|
run: |
|
|
TAG=${GITHUB_REF#refs/tags/}
|
|
echo ::set-output name=tag_name::${TAG}
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
- run: echo ${{ steps.prepare.outputs.tag_name }}
|
|
|
|
- name: Run GoReleaser
|
|
run: |
|
|
make release
|
|
docker images
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
VERSION: ${{ steps.prepare.outputs.tag_name }}
|
|
DOCKER_USERNAME: ${{ secrets.DOCKERHUB }}
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }} |