返回提交历史
Modified
.github/workflows/docker.yml
+22
-3
Modified
docker-compose.yml
+5
-3
XFEstudio/SpaceNinjaServer
ci: split docker amd64 & arm64 builds
61a8d01f
代码差异
2 个文件
+27
-6
@@ -4,9 +4,9 @@ on:
4
4
branches:
5
5
- main
6
6
jobs:
7
docker:
7
docker-amd64:
8
8
if: github.repository == 'OpenWF/SpaceNinjaServer'
9
runs-on: ubuntu-latest
9
runs-on: amd64
10
10
steps:
11
11
- name: Set up Docker buildx
12
12
uses: docker/setup-buildx-action@v3
@@ -18,8 +18,27 @@ jobs:
18
18
- name: Build and push
19
19
uses: docker/build-push-action@v6
20
20
with:
21
platforms: linux/amd64,linux/arm64
21
platforms: linux/amd64
22
22
push: true
23
23
tags: |
24
24
openwf/spaceninjaserver:latest
25
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
openwf/spaceninjaserver:latest-arm64
44
openwf/spaceninjaserver:${{ github.sha }}-arm64
@@ -1,5 +1,8 @@
1
1
services:
2
2
spaceninjaserver:
3
# The image to use. If you have an ARM CPU, replace 'latest' with 'latest-arm64'.
4
image: openwf/spaceninjaserver:latest
5
3
6
volumes:
4
7
- ./docker-data/conf:/app/conf
5
8
- ./docker-data/static-data:/app/static/data
@@ -8,10 +11,9 @@ services:
8
11
- 80:80
9
12
- 443:443
10
13
11
# Normally, the image is fetched from Docker Hub, but you can use the local Dockerfile by swapping the following two fields.
12
# Works best when using `docker-compose up --force-recreate --build`.
13
image: openwf/spaceninjaserver:latest
14
# Normally, the image is fetched from Docker Hub, but you can use the local Dockerfile by removing "image" above and adding this:
14
15
#build: .
16
# Works best when using `docker-compose up --force-recreate --build`.
15
17
16
18
depends_on:
17
19
- mongodb