Merge pull request #4 from alt-research/fix/upgrade_go_ethereum #4
Workflow file for this run
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
name: release | |
on: | |
push: | |
tags: ["*"] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
packages: write | |
pull-requests: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
GHCR_REPO: ghcr.io/${{ github.repository_owner }}/arbctl | |
jobs: | |
release-image: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: login to ghcr | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: set up docker buildx | |
id: docker-builder | |
uses: docker/setup-buildx-action@v3 | |
- name: docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
${{ env.GHCR_REPO }} | |
tags: | | |
type=ref,event=branch | |
type=ref,event=branch,suffix=-${{ github.run_number }} | |
type=ref,event=tag | |
type=ref,event=pr | |
type=semver,pattern=v{{version}} | |
type=semver,pattern=v{{major}}.{{minor}} | |
type=sha,format=short,prefix= | |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }} | |
- name: build with cache and push images | |
uses: docker/build-push-action@v3 | |
id: docker_build | |
with: | |
context: . | |
builder: ${{ steps.docker-builder.outputs.name }} | |
push: ${{ github.event_name != 'pull_request' }} | |
cache-from: | | |
type=registry,ref=${{ env.GHCR_REPO }}:latest | |
tags: ${{ steps.meta.outputs.tags }} | |
make-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: build changelog | |
id: changelog | |
uses: mikepenz/release-changelog-builder-action@v3 | |
with: | |
configuration: .github/changelog-builder.json | |
ignorePreReleases: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: make release | |
uses: ncipollo/release-action@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
body: | | |
${{ steps.changelog.outputs.changelog }} | |
allowUpdates: true | |
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') || contains(github.ref, 'pre') }} | |
draft: true |