XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

ci: build multiplatform docker image

c3bf0ae7
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

2 个文件 +4 -22
Modified .github/workflows/docker.yml +4 -21
@@ -4,9 +4,9 @@ on:
4 4 branches:
5 5 - main
6 6 jobs:
7 docker-amd64:
7 docker:
8 8 if: github.repository == 'OpenWF/SpaceNinjaServer'
9 runs-on: amd64
9 runs-on: ubuntu-latest
10 10 steps:
11 11 - name: Set up Docker buildx
12 12 uses: docker/setup-buildx-action@v3
@@ -18,27 +18,10 @@ jobs:
18 18 - name: Build and push
19 19 uses: docker/build-push-action@v6
20 20 with:
21 platforms: linux/amd64
21 platforms: linux/arm64,linux/amd64
22 22 push: true
23 23 tags: |
24 24 openwf/spaceninjaserver:latest
25 openwf/spaceninjaserver:${{ github.sha }}
26 docker-arm64:
27 if: github.repository == 'OpenWF/SpaceNinjaServer'
28 runs-on: arm64
29 steps:
30 - name: Set up Docker buildx
31 uses: docker/setup-buildx-action@v3
32 - name: Log in to container registry
33 uses: docker/login-action@v3
34 with:
35 username: openwf
36 password: ${{ secrets.DOCKERHUB_TOKEN }}
37 - name: Build and push
38 uses: docker/build-push-action@v6
39 with:
40 platforms: linux/arm64
41 push: true
42 tags: |
43 25 openwf/spaceninjaserver:latest-arm64
26 openwf/spaceninjaserver:${{ github.sha }}
44 27 openwf/spaceninjaserver:${{ github.sha }}-arm64
Modified docker-compose.yml +0 -1
@@ -1,6 +1,5 @@
1 1 services:
2 2 spaceninjaserver:
3 # The image to use. If you have an ARM CPU, replace 'latest' with 'latest-arm64'.
4 3 image: openwf/spaceninjaserver:latest
5 4
6 5 volumes: