forked from succinctlabs/op-succinct
-
Notifications
You must be signed in to change notification settings - Fork 6
117 lines (102 loc) · 3.53 KB
/
Copy pathdocker-build.yaml
File metadata and controls
117 lines (102 loc) · 3.53 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: Build OP Succinct Docker Images
on:
workflow_dispatch:
push:
paths-ignore:
- '**/*.pdf'
- '**/*.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }}
jobs:
build:
name: Build Docker Images
runs-on: ubuntu-latest-8-core
permissions:
packages: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta for op-succinct
id: meta-succinct
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}/op-succinct
tags: |
type=ref,event=tag
type=sha
- name: Docker meta for op-succinct-celestia
id: meta-succinct-celestia
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}/op-succinct-celestia
tags: |
type=ref,event=tag
type=sha
- name: Docker meta for op-succinct-eigenda
id: meta-succinct-eigenda
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}/op-succinct-eigenda
tags: |
type=ref,event=tag
type=sha
- name: Docker meta for op-succinct-agglayer
id: meta-succinct-agglayer
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}/op-succinct-agglayer
tags: |
type=ref,event=tag
type=sha
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push op-succinct
uses: docker/build-push-action@v6
with:
context: .
file: validity/Dockerfile
push: true
tags: ${{ steps.meta-succinct.outputs.tags }}
labels: ${{ steps.meta-succinct.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push op-succinct-celestia
uses: docker/build-push-action@v6
with:
context: .
file: validity/Dockerfile.celestia
push: true
tags: ${{ steps.meta-succinct-celestia.outputs.tags }}
labels: ${{ steps.meta-succinct-celestia.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push op-succinct-eigenda
uses: docker/build-push-action@v6
with:
context: .
file: validity/Dockerfile.eigenda
push: true
tags: ${{ steps.meta-succinct-eigenda.outputs.tags }}
labels: ${{ steps.meta-succinct-eigenda.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push op-succinct-agglayer
uses: docker/build-push-action@v6
with:
context: .
file: validity/Dockerfile.agglayer
push: true
tags: ${{ steps.meta-succinct-agglayer.outputs.tags }}
labels: ${{ steps.meta-succinct-agglayer.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max