-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (47 loc) · 1.37 KB
/
uniform-prover.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
46
47
48
49
50
51
52
53
54
name: Build for uniform prover
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- id: auth
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v0'
with:
token_format: access_token
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
- name: Login to Artifact Registry
uses: docker/login-action@v1
with:
registry: us-west1-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: us-west1-docker.pkg.dev/zkpool-web/zkpool/taiko-prover-worker
tags: |
type=sha,prefix=a4-,format=short
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v4
with:
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}