Skip to content

Commit 0513f43

Browse files
ci: implement mip-23 requirements in our gha workflows (#1036)
1 parent 37d3b40 commit 0513f43

11 files changed

+650
-917
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build/Push Container
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
container_name:
7+
type: string
8+
description: The name of the container to build
9+
required: true
10+
secrets:
11+
INFRA_GH_TOKEN:
12+
required: true
13+
DOCKER_HUB_USERNAME:
14+
required: true
15+
DOCKER_HUB_TOKEN:
16+
required: true
17+
18+
jobs:
19+
container-build:
20+
name: Build ${{ inputs.container_name }} ${{ matrix.architecture }}
21+
strategy:
22+
matrix:
23+
architecture: [x86_64, arm64]
24+
runs-on: ${{ matrix.architecture == 'x86_64' && 'buildjet-8vcpu-ubuntu-2204' || 'buildjet-8vcpu-ubuntu-2204-arm' }}
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
with:
29+
submodules: true
30+
ref: ${{ github.event.pull_request.head.ref || github.ref }}
31+
32+
- name: Login to GHCR
33+
uses: docker/login-action@v3
34+
with:
35+
registry: ghcr.io
36+
username: ${{ github.repository_owner }}
37+
password: ${{ secrets.INFRA_GH_TOKEN }}
38+
- name: Login to Docker Hub for rate limiting
39+
uses: docker/login-action@v3
40+
with:
41+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
42+
password: ${{ secrets.DOCKER_HUB_TOKEN }}
43+
44+
- name: Set up QEMU
45+
uses: docker/setup-qemu-action@v3
46+
47+
- name: Set up Docker Buildx
48+
uses: docker/setup-buildx-action@v3
49+
50+
- name: Build and push container tags
51+
run: |
52+
./scripts/docker/build-push-container -n ${{ inputs.container_name }}

0 commit comments

Comments
 (0)