File tree Expand file tree Collapse file tree 4 files changed +57
-4
lines changed Expand file tree Collapse file tree 4 files changed +57
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : ci
2
+
3
+ on :
4
+ push :
5
+ branches : pi
6
+
7
+ jobs :
8
+ build-amd64 :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Set up QEMU
12
+ uses : docker/setup-qemu-action@v1
13
+ - name : Set up Docker Buildx
14
+ uses : docker/setup-buildx-action@v1
15
+ - name : Login to DockerHub
16
+ uses : docker/login-action@v1
17
+ with :
18
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
19
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
20
+ - name : Checkout
21
+ uses : actions/checkout@v2
22
+ - name : Set up Python 3.9
23
+ uses : actions/setup-python@v2
24
+ with :
25
+ python-version : ' 3.9'
26
+ architecture : ' x64'
27
+ - name : Show Python version
28
+ run : python -c "import sys; print(sys.version)"
29
+ - name : Build and push
30
+ run : tools/push -p linux/amd64 utils xud
31
+ build-arm64 :
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - name : Set up QEMU
35
+ uses : docker/setup-qemu-action@v1
36
+ - name : Set up Docker Buildx
37
+ uses : docker/setup-buildx-action@v1
38
+ - name : Login to DockerHub
39
+ uses : docker/login-action@v1
40
+ with :
41
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
42
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
43
+ - name : Checkout
44
+ uses : actions/checkout@v2
45
+ - name : Set up Python 3.9
46
+ uses : actions/setup-python@v2
47
+ with :
48
+ python-version : ' 3.9'
49
+ architecture : ' x64'
50
+ - name : Show Python version
51
+ run : python -c "import sys; print(sys.version)"
52
+ - name : Build and push
53
+ run : tools/push -p linux/arm64 utils xud
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- python $( dirname " $0 " ) /helper.py build " $@ "
3
+ python3 $( dirname " $0 " ) /helper.py build " $@ "
Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ def main():
13
13
build_parser = subparsers .add_parser ("build" , prog = "build" )
14
14
build_parser .add_argument ("--dry-run" , action = "store_true" )
15
15
build_parser .add_argument ("--no-cache" , action = "store_true" )
16
- build_parser .add_argument ("--platform" , action = "append" )
16
+ build_parser .add_argument ("--platform" , "-p" , action = "append" )
17
17
build_parser .add_argument ("images" , type = str , nargs = "*" )
18
18
19
19
push_parser = subparsers .add_parser ("push" )
20
20
push_parser .add_argument ("--dirty-push" , action = "store_true" )
21
21
push_parser .add_argument ("--dry-run" , action = "store_true" )
22
22
push_parser .add_argument ("--no-cache" , action = "store_true" )
23
- push_parser .add_argument ("--platform" , action = "append" )
23
+ push_parser .add_argument ("--platform" , "-p" , action = "append" )
24
24
push_parser .add_argument ("images" , type = str , nargs = "*" )
25
25
26
26
subparsers .add_parser ("test" )
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ if [[ $(uname -m) == "aarch64" ]]; then
16
16
fi
17
17
18
18
cd " $( dirname " $0 " ) " || exit 1
19
- python helper.py push " $@ "
19
+ python3 helper.py push " $@ "
You can’t perform that action at this time.
0 commit comments