Skip to content

Commit a1cb15b

Browse files
authored
Updated update.sh and clear data from broken github action! (#505)
* Update update.sh to fix SHA256 grabbing * Update buildinfo.json reverted data so build.sh can run * Update docker-compose.yml reverted data so build.sh can run
1 parent 890489f commit a1cb15b

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

buildinfo.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,12 @@
5151
"1.1.110": {
5252
"sha256": "485fe6db36e5decd7dd0d70e7c97e61f818100fa3e48d87884b287027c7a646a",
5353
"tags": [
54+
"latest",
55+
"stable",
5456
"stable-1.1.110",
5557
"1",
5658
"1.1",
5759
"1.1.110"
5860
]
59-
},
60-
"2.0.7": {
61-
"sha256": "",
62-
"tags": [
63-
"latest",
64-
"stable",
65-
"stable-2.0.7",
66-
"2",
67-
"2.0",
68-
"2.0.7"
69-
]
7061
}
7162
}

docker/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ services:
66
args:
77
# Check buildinfo.json for supported versions and SHAs
88
# https://github.com/factoriotools/factorio-docker/blob/master/buildinfo.json
9-
- VERSION=2.0.7
10-
- SHA256=
9+
- VERSION=1.1.110
10+
- SHA256=485fe6db36e5decd7dd0d70e7c97e61f818100fa3e48d87884b287027c7a646a
1111
ports:
1212
- "34197:34197/udp"
1313
- "27015:27015/tcp"

update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ SEMVER_REGEX="^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
44

55
stable_online_version=$(curl 'https://factorio.com/api/latest-releases' | jq '.stable.headless' -r)
66
experimental_online_version=$(curl 'https://factorio.com/api/latest-releases' | jq '.experimental.headless' -r)
7-
stable_sha256=$(curl "https://factorio.com/download/sha256sums/" | grep "factorio_headless_x64_${stable_online_version}.tar.xz" | awk '{print $1}')
8-
experimental_sha256=$(curl "https://factorio.com/download/sha256sums/" | grep "factorio_headless_x64_${experimental_online_version}.tar.xz" | awk '{print $1}')
7+
stable_sha256=$(curl "https://factorio.com/download/sha256sums/" | grep -E "(factorio_headless_x64_|factorio-headless_linux_)${stable_online_version}.tar.xz" | awk '{print $1}')
8+
experimental_sha256=$(curl "https://factorio.com/download/sha256sums/" | grep -E "(factorio_headless_x64_|factorio-headless_linux_)${experimental_online_version}.tar.xz" | awk '{print $1}')
99
stable_current_version=$(jq 'with_entries(select(contains({value:{tags:["stable"]}}))) | keys | .[0]' buildinfo.json -r)
1010
latest_current_version=$(jq 'with_entries(select(contains({value:{tags:["latest"]}}))) | keys | .[0]' buildinfo.json -r)
1111
echo "stable_online_version=${stable_online_version} experimental_online_version=${experimental_online_version}"

0 commit comments

Comments
 (0)