|
8 | 8 | env: |
9 | 9 | REGISTRY: ghcr.io |
10 | 10 | jobs: |
11 | | - # docker: |
12 | | - # runs-on: ubuntu-latest |
13 | | - # steps: |
14 | | - # - uses: actions/checkout@v3 |
15 | | - # with: |
16 | | - # submodules: true |
17 | | - # - |
18 | | - # name: Set up Docker Buildx |
19 | | - # uses: docker/setup-buildx-action@v2 |
20 | | - # - |
21 | | - # name: Login to GithubPackages |
22 | | - # uses: docker/login-action@v2 |
23 | | - # with: |
24 | | - # registry: ${{ env.REGISTRY }} |
25 | | - # username: ${{ github.actor }} |
26 | | - # password: ${{ secrets.GITHUB_TOKEN }} |
27 | | - # - |
28 | | - # name: build and push docker image |
29 | | - # uses: docker/build-push-action@v2 |
30 | | - # with: |
31 | | - # context: . |
32 | | - # #platforms: linux/amd64,linux/arm64 |
33 | | - # push: true |
34 | | - # file: command/docker/client/client.Dockerfile |
35 | | - # cache-from: type=gha |
36 | | - # cache-to: type=gha,mode=max |
37 | | - # tags: ${{ env.REGISTRY }}/fornetcode/fornet:${{github.event.inputs.version}} |
| 11 | + docker: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v3 |
| 15 | + with: |
| 16 | + submodules: true |
| 17 | + - |
| 18 | + name: Set up Docker Buildx |
| 19 | + uses: docker/setup-buildx-action@v2 |
| 20 | + - |
| 21 | + name: Login to GithubPackages |
| 22 | + uses: docker/login-action@v2 |
| 23 | + with: |
| 24 | + registry: ${{ env.REGISTRY }} |
| 25 | + username: ${{ github.actor }} |
| 26 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 27 | + - |
| 28 | + name: build and push docker image |
| 29 | + uses: docker/build-push-action@v2 |
| 30 | + with: |
| 31 | + context: . |
| 32 | + #platforms: linux/amd64,linux/arm64 |
| 33 | + push: true |
| 34 | + file: command/docker/client/client.Dockerfile |
| 35 | + cache-from: type=gha |
| 36 | + cache-to: type=gha,mode=max |
| 37 | + tags: ${{ env.REGISTRY }}/fornetcode/fornet:${{github.event.inputs.version}} |
38 | 38 | commandLine: |
39 | 39 | strategy: |
40 | 40 | max-parallel: 1 |
41 | 41 | fail-fast: true |
42 | 42 | matrix: |
43 | 43 | settings: |
44 | | - # - host: ubuntu-latest |
45 | | - # target: x86_64-unknown-linux-gnu |
46 | | - # build: make release-linux |
| 44 | + - host: ubuntu-latest |
| 45 | + target: x86_64-unknown-linux-gnu |
| 46 | + build: make release-linux |
47 | 47 | - host: macos-latest |
48 | 48 | target: x86_64-apple-darwin |
49 | 49 | build: make release-mac-x86_64 |
50 | | - - host: macos-latest |
51 | | - target: aarch64-apple-darwin |
52 | | - build: make release-mac-aarch64 |
| 50 | + # - host: macos-latest # This needs aarch64 OpenSSL, will wait github action support MacOS M1(https://github.com/github/roadmap/issues/528), then run this. |
| 51 | + # target: aarch64-apple-darwin |
| 52 | + # build: make release-mac-aarch64 |
53 | 53 | runs-on: ${{ matrix.settings.host }} |
54 | 54 | steps: |
55 | 55 | - uses: actions/checkout@v3 |
|
0 commit comments