Skip to content

Commit

Permalink
fix: use upgraded runner
Browse files Browse the repository at this point in the history
  • Loading branch information
alpinevm committed Feb 21, 2025
1 parent d47beb3 commit e36e68e
Showing 1 changed file with 32 additions and 8 deletions.
40 changes: 32 additions & 8 deletions .github/workflows/docker-build-devnet.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Push DevNet Docker Image
name: Build and Push DevNet Docker Image (Multi-Arch 16-Core)

on:
push:
Expand All @@ -7,15 +7,20 @@ on:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- arch: amd64
runner: ubuntu-16-cores # GitHub's 16-core AMD runner
- arch: arm64
runner: ubuntu-16-cores-arm64 # GitHub's 16-core ARM runner

runs-on: ${{ matrix.runner }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -29,9 +34,28 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64 # QEMU will emulate arm64
file: Dockerfile.devnet
push: true
platforms: linux/${{ matrix.arch }}
tags: |
riftresearch/devnet:latest
riftresearch/devnet:${{ github.sha }}
riftresearch/devnet:${{ matrix.arch }}
riftresearch/devnet:${{ github.sha }}-${{ matrix.arch }}
# Multi-Arch Manifest Creation
manifest:
needs: build
runs-on: ubuntu-latest
steps:
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Create and push multi-arch manifest
run: |
docker manifest create riftresearch/devnet:latest \
--amend riftresearch/devnet:amd64 \
--amend riftresearch/devnet:arm64
docker manifest push riftresearch/devnet:latest

0 comments on commit e36e68e

Please sign in to comment.