Skip to content

Merge pull request #475 from MaterializeInc/evan/pin-rust-version-on-… #206

Merge pull request #475 from MaterializeInc/evan/pin-rust-version-on-…

Merge pull request #475 from MaterializeInc/evan/pin-rust-version-on-… #206

Workflow file for this run

name: main
on:
push:
branches:
- main
workflow_dispatch:
env:
DOCKER_BUILDKIT: 1
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.78.0
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
toolchain: 1.78.0
args: -- --check
- uses: actions-rs/cargo@v1
with:
toolchain: 1.78.0
command: clippy
build:
needs: lint
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
username: materializebot
password: ${{ secrets.DOCKER_HUB_MATERIALIZEBOT_API_KEY }}
- uses: docker/build-push-action@v2
with:
push: true
tags: |
materialize/k8s-eip-operator:${{ github.sha }}
materialize/k8s-eip-operator:latest
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max