-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (51 loc) · 1.58 KB
/
docker-build-devnet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build and Push DevNet Docker Image (Multi-Arch 16-Core)
on:
push:
branches:
- main
jobs:
build:
strategy:
matrix:
include:
- arch: amd64
runner: ubuntu-24.04-amd64-16-cores
- arch: arm64
runner: ubuntu-24.04-arm64-16-cores
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.devnet
push: true
platforms: linux/${{ matrix.arch }}
tags: |
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