forked from s7v7nislands/optimism
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ethereum-optimism#14 from keroro520/docker-build-p…
…ush-workflow feat(.github): add docker-build-push.yml
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Build and Push Docker Images | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push op-node image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./op-node/Dockerfile | ||
push: true | ||
tags: ghcr.io/node-real/optimism/op-node:${{ github.ref_name }} | ||
|
||
- name: Build and push op-batcher image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./op-batcher/Dockerfile | ||
push: true | ||
tags: ghcr.io/node-real/optimism/op-batcher:${{ github.ref_name }} | ||
|
||
- name: Build and push op-proposer image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./op-proposer/Dockerfile | ||
push: true | ||
tags: ghcr.io/node-real/optimism/op-proposer:${{ github.ref_name }} |