Skip to content

Commit 4df5148

Browse files
committed
fix: test push to custom registry
1 parent a24bae7 commit 4df5148

File tree

2 files changed

+37
-15
lines changed

2 files changed

+37
-15
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,34 @@ on:
1212

1313

1414
jobs:
15-
16-
1715
build:
1816
runs-on: ubuntu-latest
1917
outputs:
2018
steamcmd_version: ${{ steps.get_version.outputs.steamcmd_version }}
2119
steps:
2220
- uses: actions/checkout@v3
2321

24-
- name: Log in to the Container registry
25-
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
22+
- name: Log in to GHCR
23+
uses: docker/login-action@v3
2624
with:
2725
registry: ghcr.io
2826
username: ${{ github.actor }}
2927
password: ${{ secrets.GITHUBTOKEN }}
3028

29+
- name: Log in to Harbor registry
30+
uses: docker/login-action@v3
31+
with:
32+
registry: ${{ secrets.HARBOR_URL }}
33+
username: ${{ secrets.HARBOR_USERNAME }}
34+
password: ${{ secrets.HARBOR_PASSWORD }}
35+
3136
- name: Extract metadata (tags, labels) for Docker
3237
id: meta
33-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
38+
uses: docker/metadata-action@v4
3439
with:
35-
images: ghcr.io/gameservercentral/steamcmd-docker
36-
40+
images: |
41+
ghcr.io/gameservercentral/satisfactory
42+
${{ secrets.HARBOR_URL }}/gameservercentral/satisfactory
3743
3844
- name: Extract Satisfactory buildID
3945
id: get_manifest
@@ -49,14 +55,15 @@ jobs:
4955
echo "Manifest ID: $manifest"
5056
echo "::set-output name=manifest_id::$manifest"
5157
52-
53-
- name: Build and push Docker image
54-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
58+
- name: Build and push Docker image to both registries
59+
uses: docker/build-push-action@v5
5560
with:
5661
context: .
5762
push: ${{ github.event_name != 'pull_request' }}
5863
tags: |
5964
ghcr.io/gameservercentral/satisfactory:latest
6065
ghcr.io/gameservercentral/satisfactory:nightly
6166
ghcr.io/gameservercentral/satisfactory:${{ steps.get_manifest.outputs.manifest_id }}
62-
labels: ${{ steps.meta.outputs.labels }}
67+
registry.wenisch.tech/myproject/satisfactory:latest
68+
registry.wenisch.tech/myproject/satisfactory:nightly
69+
labels: ${{ steps.meta.outputs.labels }}

README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,25 @@
77

88
This project provides a Docker image that uses [SteamCMD](https://developer.valvesoftware.com/wiki/SteamCMD) to easily install and update dedicated Satisfactory servers.
99

10-
## Usage
10+
> **Note:** This repository and its contents are not affiliated with, endorsed, or supported by Steam or Coffee Stain Studios.
11+
12+
## Build the Docker Image
13+
14+
To build the image locally, run:
15+
16+
```sh
17+
docker build -t satisfactory-local .
18+
```
19+
20+
## Run the Locally Built Image
21+
22+
To run the container with the common Satisfactory Dedicated Server ports exposed and start the server automatically, use `/data/FactoryServer.sh` as the entrypoint:
1123

1224
```sh
1325
docker run -it --rm \
14-
-v /path/to/server/data:/data \
15-
ghcr.io/gameservercentral/satisfactory-docker
16-
```
26+
-v /path/to/local/saves:/data/FactoryGame/Saved/SaveGames \
27+
-p 7777:7777/udp \
28+
-p 15000:15000/udp \
29+
-p 15777:15777/udp \
30+
satisfactory-local /data/FactoryServer.sh
31+
```

0 commit comments

Comments
 (0)