Skip to content

Commit

Permalink
add self hosted runner to publish arm64 images
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaizet-ledger committed Jun 19, 2024
1 parent 94c6fc0 commit e939250
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- '*'

jobs:
build-and-push:
build-and-push-amd64-image:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -23,10 +23,36 @@ jobs:
- name: Build docker image
uses: docker/build-push-action@v2
with:
platforms: linux/amd64
context: .
file: Dockerfile
# push: ${{ startsWith(github.ref, 'refs/tags/') }}
push: true
tags: scrolltech/l2geth:${{github.ref_name}}
tags: scrolltech/l2geth:${{github.ref_name}}-amd64
# cache-from: type=gha,scope=${{ github.workflow }}
# cache-to: type=gha,scope=${{ github.workflow }}
build-and-push-arm64-image:
runs-on: [self-hosted, Linux, ARM64, scroll-runner]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build docker image
uses: docker/build-push-action@v2
with:
platforms: linux/arm64
context: .
file: Dockerfile
# push: ${{ startsWith(github.ref, 'refs/tags/') }}
push: true
tags: scrolltech/l2geth:${{github.ref_name}}-arm64
# cache-from: type=gha,scope=${{ github.workflow }}
# cache-to: type=gha,scope=${{ github.workflow }}

0 comments on commit e939250

Please sign in to comment.