-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (43 loc) · 1.06 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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: stable
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- uses: actions-rs/cargo@v1
with:
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