mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-01 17:43:45 +00:00
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
name: Docker-arm64
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: "tag of this image (suffix -arm64 is added automatically)"
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
build-and-push-arm64-image:
|
|
runs-on: ubuntu-latest
|
|
permissions: {}
|
|
|
|
strategy:
|
|
matrix:
|
|
arch:
|
|
- aarch64
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Set up QEMU
|
|
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@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
|
with:
|
|
cache-binary: false
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #v3.4.0
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build docker image
|
|
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
|
|
with:
|
|
platforms: linux/arm64
|
|
context: .
|
|
file: Dockerfile
|
|
push: true
|
|
tags: scrolltech/l2geth:${{inputs.tag}}-arm64
|