File tree Expand file tree Collapse file tree 1 file changed +41
-1
lines changed
Expand file tree Collapse file tree 1 file changed +41
-1
lines changed Original file line number Diff line number Diff line change 1212
1313
1414jobs :
15+ cross-compile :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Check out the repo
19+ uses : actions/checkout@v3
20+ - name : Setup Go
21+ uses : actions/setup-go@v3
22+ with :
23+ go-version : " 1.21"
24+ - name : Cache Go
25+ id : go-cache
26+ uses : actions/cache@v3
27+ with :
28+ path : |
29+ ~/go/bin
30+ ~/go/pkg/mod
31+ key : go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }}
32+ - name : Install promu
33+ run : make promu
34+ shell : bash
35+ - name : Build
36+ run : ~/go/bin/promu -c .promu.yml crossbuild -v -p linux/amd64 -p linux/arm64 -p darwin/amd64 -p darwin/arm64
37+ - name : Upload Binaries
38+ uses : actions/upload-artifact@v4
39+ with :
40+ name : binaries
41+ path : .build/*
42+ include-hidden-files : true
43+
44+
1545 push_to_registries :
16- name : Push Docker image to multiple registries
46+ name : Push Docker image
1747 runs-on : ubuntu-latest
48+ needs : [cross-compile]
49+
1850 permissions :
1951 attestations : write
2052 packages : write
3264 - name : Set up Docker Buildx
3365 uses : docker/setup-buildx-action@v2
3466
67+ - name : Download Binaries
68+ uses : actions/download-artifact@v4
69+ with :
70+ name : binaries
71+ path : .build/
72+ include-hidden-files : true
73+
74+ - run : chmod +x .build/**/*
3575
3676 - name : Log in to the Container registry
3777 uses : docker/login-action@v3
You can’t perform that action at this time.
0 commit comments