mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 22:43:47 +00:00
ci: Support arm64 dedicated workflow (#840)
* add self hosted runner to publish arm64 images * test build with macos and ubuntu arm64 * Add docker to mac runner and remove qemu * dedicated workflow for arm64 image * cleaning
This commit is contained in:
parent
94c6fc097a
commit
f2efa44e11
1 changed files with 38 additions and 0 deletions
38
.github/workflows/docker-arm64.yaml
vendored
Normal file
38
.github/workflows/docker-arm64.yaml
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
name: Docker
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push-arm64-image:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
arch:
|
||||||
|
- amd64
|
||||||
|
- aarch64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Set up QEMU
|
||||||
|
if: matrix.arch == 'aarch64'
|
||||||
|
run: |
|
||||||
|
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
|
docker buildx create --name multiarch --driver docker-container --use
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: 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: true
|
||||||
|
tags: scrolltech/l2geth:${{github.ref_name}}-arm64-ubuntu
|
||||||
Loading…
Reference in a new issue