-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13c7d79
commit db65cfa
Showing
3 changed files
with
721 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,85 @@ | ||
name: Docker Build | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build Docker Images | ||
runs-on: | ||
- runs-on | ||
- cpu=16 | ||
- ram=64 | ||
- family=m7a+m7i-flex | ||
- image=ubuntu22-full-x64 | ||
- run-id=${{ github.run_id }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Docker meta for op-proposer | ||
id: meta-op-proposer | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ghcr.io/${{ github.repository }}/op-proposer | ||
tags: | | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=sha | ||
- name: Docker meta for succinct-proposer | ||
id: meta-succinct | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ghcr.io/${{ github.repository }}/succinct-proposer | ||
tags: | | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=sha | ||
- name: Login to GitHub Container Registry | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push op-proposer | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
file: proposer/op/Dockerfile.op_proposer | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta-op-proposer.outputs.tags }} | ||
labels: ${{ steps.meta-op-proposer.outputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
- name: Build and push succinct-proposer | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
file: proposer/succinct/Dockerfile | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta-succinct.outputs.tags }} | ||
labels: ${{ steps.meta-succinct.outputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
ssh: default |
File renamed without changes.
Oops, something went wrong.