File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed
Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Nightly
2+
3+ on :
4+ push :
5+ branches :
6+ - " main"
7+ - " feature/*"
8+ pull_request :
9+ branches : [ "main" ]
10+ schedule :
11+ - cron : ' 0 0 * * *' # This cron expression schedules the workflow to run every day at midnight UTC
12+
13+
14+ jobs :
15+
16+
17+ build :
18+ runs-on : ubuntu-latest
19+ outputs :
20+ steamcmd_version : ${{ steps.get_version.outputs.steamcmd_version }}
21+ steps :
22+ - uses : actions/checkout@v3
23+
24+ - name : Log in to the Container registry
25+ uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
26+ with :
27+ registry : ghcr.io
28+ username : ${{ github.actor }}
29+ password : ${{ secrets.GITHUBTOKEN }}
30+
31+ - name : Extract metadata (tags, labels) for Docker
32+ id : meta
33+ uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
34+ with :
35+ images : ghcr.io/gameservercentral/steamcmd-docker
36+
37+
38+ - name : Extract Satisfactory manifest ID
39+ id : get_manifest
40+ run : |
41+ sudo add-apt-repository multiverse
42+ sudo dpkg --add-architecture i386
43+ sudo apt update
44+ sudo apt install -y steamcmd
45+ manifest=$(steamcmd +login anonymous +app_info_print 1690800 +quit | grep -m1 manifest | awk '{print $3}')
46+ echo "Manifest ID: $manifest"
47+ echo "::set-output name=manifest_id::$manifest"
48+
49+
50+ - name : Build and push Docker image
51+ uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
52+ with :
53+ context : .
54+ push : ${{ github.event_name != 'pull_request' }}
55+ tags : |
56+ ghcr.io/gameservercentral/satisfactory:latest
57+ ghcr.io/gameservercentral/satisfactory:nightly
58+ ghcr.io/gameservercentral/satisfactory:${{ steps.get_manifest.outputs.manifest_id }}
59+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1+ FROM ghcr.io/gameservercentral/steamcmd-docker
2+ USER user
3+ RUN steamcmd +login anonymous +force_install_dir /data +app_update 1690800 validate +quit
You can’t perform that action at this time.
0 commit comments