forked from celo-org/op-succinct
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfault-proof-celo-docker-build.yaml
More file actions
75 lines (66 loc) · 2.29 KB
/
fault-proof-celo-docker-build.yaml
File metadata and controls
75 lines (66 loc) · 2.29 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Build & push Celo fault-proof images
on:
pull_request:
branches:
- "**"
workflow_dispatch: {}
jobs:
build-fault-proof-celo:
runs-on: ubuntu-24.04-8core
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# ---------- Proposer (Celo) metadata ----------
- name: Docker meta for proposer-celo
id: meta-proposer
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}/op-succinct-lite-proposer-celo
tags: |
type=ref,event=tag
type=sha
type=raw,value=latest,enable={{is_default_branch}}
# ---------- Challenger (Celo) metadata ----------
- name: Docker meta for challenger-celo
id: meta-challenger
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}/op-succinct-lite-challenger-celo
tags: |
type=ref,event=tag
type=sha
type=raw,value=latest,enable={{is_default_branch}}
# ---------- Login to GHCR ----------
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# ---------- Build & push proposer (Celo) ----------
- name: Build and push proposer-celo
uses: docker/build-push-action@v6
with:
context: .
file: fault-proof/Dockerfile.proposer.celo
push: true
tags: ${{ steps.meta-proposer.outputs.tags }}
labels: ${{ steps.meta-proposer.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
# ---------- Build & push challenger (Celo) ----------
- name: Build and push challenger-celo
uses: docker/build-push-action@v6
with:
context: .
file: fault-proof/Dockerfile.challenger.celo
push: true
tags: ${{ steps.meta-challenger.outputs.tags }}
labels: ${{ steps.meta-challenger.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max