Skip to content

Commit e07e80c

Browse files
authored
Merge pull request #14 from keroro520/docker-build-push-workflow
feat(.github): add docker-build-push.yml
2 parents 250fbcb + 372ec73 commit e07e80c

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build and Push Docker Images
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build-and-push:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v2
18+
19+
- name: Login to GitHub Container Registry
20+
uses: docker/login-action@v2
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Build and push op-node image
27+
uses: docker/build-push-action@v4
28+
with:
29+
context: .
30+
file: ./op-node/Dockerfile
31+
push: true
32+
tags: ghcr.io/node-real/optimism/op-node:${{ github.ref_name }}
33+
34+
- name: Build and push op-batcher image
35+
uses: docker/build-push-action@v4
36+
with:
37+
context: .
38+
file: ./op-batcher/Dockerfile
39+
push: true
40+
tags: ghcr.io/node-real/optimism/op-batcher:${{ github.ref_name }}
41+
42+
- name: Build and push op-proposer image
43+
uses: docker/build-push-action@v4
44+
with:
45+
context: .
46+
file: ./op-proposer/Dockerfile
47+
push: true
48+
tags: ghcr.io/node-real/optimism/op-proposer:${{ github.ref_name }}

0 commit comments

Comments
 (0)