go-ethereum/.github/workflows/docker.yaml
sbaizet d1055b164b
Ci add support for arm64 platform (#703)
* CI: build image which support arm64 platform

* add qemu on docker workflow
2024-04-17 10:15:23 +08:00

33 lines
908 B
YAML

name: Docker
on:
push:
tags:
- '*'
jobs:
build-and-push:
runs-on: ubuntu-latest
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:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm64
# push: ${{ startsWith(github.ref, 'refs/tags/') }}
push: true
tags: scrolltech/l2geth:${{github.ref_name}}
# cache-from: type=gha,scope=${{ github.workflow }}
# cache-to: type=gha,scope=${{ github.workflow }}