Skip to content

Commit 9d79df3

Browse files
committed
ci(docker,manylinux): add workflows to bake images
Signed-off-by: Yi Huang <yi@secondstate.io>
1 parent 5d221a0 commit 9d79df3

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: manylinux
3+
4+
on:
5+
pull_request:
6+
branches: [main]
7+
paths:
8+
- 'docker-bake.manylinux.hcl'
9+
- 'Dockerfile.manylinux*'
10+
- 'scripts/**'
11+
12+
permissions: {}
13+
14+
jobs:
15+
bake:
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
include:
20+
- arch: x86_64
21+
targets: x86_64,x86_64-plugins
22+
host_runner: ubuntu-latest
23+
- arch: aarch64
24+
targets: aarch64,aarch64-plugins
25+
host_runner: ubuntu-24.04-arm
26+
27+
name: manylinux_2_28 (${{ matrix.arch }})
28+
runs-on: ${{ matrix.host_runner }}
29+
30+
steps:
31+
- if: ${{ github.event_name != 'pull_request' }}
32+
name: Login to DockerHub
33+
uses: docker/login-action@v3
34+
with:
35+
username: ${{ secrets.DOCKER_USERNAME }}
36+
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
37+
38+
- name: Set up Docker Buildx
39+
uses: docker/setup-buildx-action@v3
40+
41+
- name: Bake and Push
42+
uses: docker/bake-action@v6
43+
with:
44+
push: ${{ github.event_name != 'pull_request' }}
45+
files: docker-bake.ubuntu.hcl
46+
targets: ${{ matrix.targets }}

0 commit comments

Comments
 (0)