Skip to content

Add CI, rename binary #1

Add CI, rename binary

Add CI, rename binary #1

Workflow file for this run

# Taken form upstream reth
# https://github.com/paradigmxyz/reth/blob/3212af2d85a54eb207661361ac9fe1d7de4b5b8e/.github/workflows/docker.yml
name: release
on:
push:
tags:
- v*
env:
REPO_NAME: ${{ github.repository_owner }}/fraxtal-op-reth
IMAGE_NAME: ${{ github.repository_owner }}/fraxtal-op-reth
DOCKER_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/fraxtal-op-reth
CARGO_TERM_COLOR: always
DOCKER_USERNAME: ${{ github.actor }}
jobs:
build:
name: build and push
runs-on: ubuntu-20.04
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: taiki-e/install-action@cross
- name: Log in to Docker
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username ${DOCKER_USERNAME} --password-stdin
- name: Set up Docker builder
run: |
docker run --privileged --rm tonistiigi/binfmt --install arm64,amd64
docker buildx create --use --name cross-builder
- name: Build and push fraxtal-op-reth image, tag as "latest"
run: make PROFILE=maxperf docker-build-push-latest
- name: Build and push fraxtal-op-reth image
run: make PROFILE=maxperf docker-build-push