Skip to content

[WIP] release pipeline #1

[WIP] release pipeline

[WIP] release pipeline #1

Workflow file for this run

name: Docker release
on:
workflow_dispatch: {}
pull_request:
push:
tags:
- v*
env:
CARGO_TERM_COLOR: always
DOCKER_IMAGE_NAME: alchemyplatform/rundler
DOCKER_USERNAME: alchemyplatform
jobs:
build:
name: build and push
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Get latest version of stable Rust
run: rustup update stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- 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 image
run: |
cargo install cross
env PROFILE=maxperf make docker-build-latest