-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (68 loc) · 1.88 KB
/
docker-image.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Push Dev Container
on:
workflow_dispatch:
push:
paths:
- ./**
branches: ["main"]
pull_request:
paths:
- ./**
branches: ["main"]
jobs:
build-aarch64-dev-containers:
runs-on: linux-arm64
strategy:
matrix:
image:
[
"manylinux2014_aarch64",
"manylinux_2_28_aarch64",
"musllinux_1_2_aarch64",
]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./${{ matrix.image }}/Dockerfile
push: true
tags: congyuwang/${{ matrix.image }}:llvm-19.1.3
cache-from: type=registry,ref=congyuwang/${{ matrix.image }}:llvm-19.1.3
cache-to: type=inline
build-x86-64-dev-containers:
runs-on: ubuntu-latest
strategy:
matrix:
image:
[
"manylinux2014_x86_64",
"manylinux_2_28_x86_64",
"musllinux_1_2_x86_64",
]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./${{ matrix.image }}/Dockerfile
push: true
tags: congyuwang/${{ matrix.image }}:llvm-19.1.3
cache-from: type=registry,ref=congyuwang/${{ matrix.image }}:llvm-19.1.3
cache-to: type=inline