File tree Expand file tree Collapse file tree 2 files changed +59
-3
lines changed Expand file tree Collapse file tree 2 files changed +59
-3
lines changed Original file line number Diff line number Diff line change 1
- name : ci
1
+ name : Auto Build
2
2
3
3
on : push
4
4
24
24
with :
25
25
python-version : ' 3.9'
26
26
architecture : ' x64'
27
- - name : Show Python version
28
- run : python -c "import sys; print(sys.version)"
29
27
- name : Build and push
30
28
run : tools/push -p linux/amd64
31
29
build-arm64 :
Original file line number Diff line number Diff line change
1
+ name : Manual Build
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ images :
7
+ description : ' Images to build'
8
+ required : true
9
+
10
+ jobs :
11
+ build-amd64 :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Set up QEMU
15
+ uses : docker/setup-qemu-action@v1
16
+ - name : Set up Docker Buildx
17
+ uses : docker/setup-buildx-action@v1
18
+ - name : Login to DockerHub
19
+ uses : docker/login-action@v1
20
+ with :
21
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
22
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
23
+ - name : Checkout
24
+ uses : actions/checkout@v2
25
+ with :
26
+ fetch-depth : 0
27
+ - name : Set up Python 3.9
28
+ uses : actions/setup-python@v2
29
+ with :
30
+ python-version : ' 3.9'
31
+ architecture : ' x64'
32
+ - name : Build and push
33
+ run : tools/push -p linux/amd64 ${{ github.event.inputs.images }}
34
+ build-arm64 :
35
+ runs-on : ubuntu-latest
36
+ steps :
37
+ - name : Set up QEMU
38
+ uses : docker/setup-qemu-action@v1
39
+ - name : Set up Docker Buildx
40
+ uses : docker/setup-buildx-action@v1
41
+ - name : Login to DockerHub
42
+ uses : docker/login-action@v1
43
+ with :
44
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
45
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
46
+ - name : Checkout
47
+ uses : actions/checkout@v2
48
+ with :
49
+ fetch-depth : 0
50
+ - name : Set up Python 3.9
51
+ uses : actions/setup-python@v2
52
+ with :
53
+ python-version : ' 3.9'
54
+ architecture : ' x64'
55
+ - name : Show Python version
56
+ run : python -c "import sys; print(sys.version)"
57
+ - name : Build and push
58
+ run : tools/push -p linux/arm64 ${{ github.event.inputs.images }}
You can’t perform that action at this time.
0 commit comments