mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
test arm64
This commit is contained in:
parent
28550ada63
commit
0c53cbd856
2 changed files with 71 additions and 1 deletions
69
.github/workflows/docker-build-hell-arm64.yml
vendored
Normal file
69
.github/workflows/docker-build-hell-arm64.yml
vendored
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
name: docker build on merge
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
ci-build-on-merge:
|
||||
if: |
|
||||
github.event.pull_request.merged == true &&
|
||||
contains(github.event.pull_request.labels.*.name, 'CI:Build')
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
# Pull the code
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Install Docker Buildx
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
# Log in to Docker Hub – store secrets in repo → Settings → Secrets and variables → Actions
|
||||
# - name: Log in to Docker Hub
|
||||
# uses: docker/login-action@v3
|
||||
# with:
|
||||
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
# Build (and optionally push) the image
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile # Path to the Dockerfile if not root
|
||||
platforms: linux/arm64 # Add ,linux/arm64 if you need multi-arch
|
||||
push: true # Change to false to keep image local to runner
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/go-etherium-satan:latest
|
||||
|
||||
ci-build-manual:
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Pull the code
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Install Docker Buildx
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
# 4) Log in to Docker Hub – store secrets in repo → Settings → Secrets and variables → Actions
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
# 5) Build (and optionally push) the image
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile # Path to the Dockerfile if not root
|
||||
platforms: linux/arm64 # Add ,linux/arm64 if you need multi-arch
|
||||
push: true # Change to false to keep image local to runner
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/go-etherium-satan-arm64:latest
|
||||
|
||||
3
.github/workflows/docker-build-hell.yml
vendored
3
.github/workflows/docker-build-hell.yml
vendored
|
|
@ -63,6 +63,7 @@ jobs:
|
|||
with:
|
||||
context: .
|
||||
file: ./Dockerfile # Path to the Dockerfile if not root
|
||||
platforms: linux/amd64,linux/arm64 # Add ,linux/arm64 if you need multi-arch
|
||||
platforms: linux/amd64 # Add ,linux/arm64 if you need multi-arch
|
||||
push: true # Change to false to keep image local to runner
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/go-etherium-satan:latest
|
||||
|
||||
Loading…
Reference in a new issue