mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-02-11 15:48:43 +01:00
Compare commits
2 Commits
b7413607c4
...
8c9dfd004e
Author | SHA1 | Date | |
---|---|---|---|
|
8c9dfd004e | ||
|
867635db16 |
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<!-- start autogeneration tags -->
|
<!-- start autogeneration tags -->
|
||||||
* `2.0.14`, `latest`
|
* `2.0.14`, `latest`
|
||||||
* `2`, `2.0`, `2.0.13`, `stable-2.0.13`
|
* `2`, `2.0`, `2.0.13`, `stable`, `stable-2.0.13`
|
||||||
* `1`, `1.1`, `1.1.110`, `stable-1.1.110`
|
* `1`, `1.1`, `1.1.110`, `stable-1.1.110`
|
||||||
* `1.0`, `1.0.0`
|
* `1.0`, `1.0.0`
|
||||||
* `0.17`, `0.17.79`
|
* `0.17`, `0.17.79`
|
||||||
|
@ -60,6 +60,7 @@
|
|||||||
"2.0.13": {
|
"2.0.13": {
|
||||||
"sha256": "27b36901a39e593adf28418c0286142c6c7a9f83d156963c7369bd405a25c7d1",
|
"sha256": "27b36901a39e593adf28418c0286142c6c7a9f83d156963c7369bd405a25c7d1",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
"stable",
|
||||||
"stable-2.0.13",
|
"stable-2.0.13",
|
||||||
"2",
|
"2",
|
||||||
"2.0",
|
"2.0",
|
||||||
|
@ -73,8 +73,8 @@ rm -f -- "$tmpfile"
|
|||||||
|
|
||||||
# Update tag by stable
|
# Update tag by stable
|
||||||
cp buildinfo.json "$tmpfile"
|
cp buildinfo.json "$tmpfile"
|
||||||
if [[ $stableOnlineVersionShort == "$stableCurrentVersionShort" ]]; then
|
if [[ "$stable_online_version" == "$stable_current_version" ]]; then
|
||||||
jq --arg stable_current_version "$stable_current_version" --arg stable_online_version "$stable_online_version" --arg sha256 "$stable_sha256" 'with_entries(if .key == $stable_current_version then .key |= $stable_online_version | .value.sha256 |= $sha256 | .value.tags |= . - [$stable_current_version] + [$stable_online_version] else . end)' "$tmpfile" > buildinfo.json
|
jq --arg stable_current_version "$stable_current_version" --arg stable_online_version "$stable_online_version" --arg sha256 "$stable_sha256" 'with_entries(if .key == $stable_current_version then .key |= $stable_online_version | .value.sha256 |= $sha256 | .value.tags |= . - [$stable_current_version] + [$stable_online_version, "stable"] else . end)' "$tmpfile" > buildinfo.json
|
||||||
else
|
else
|
||||||
jq --arg stable_current_version "$stable_current_version" --arg stable_online_version "$stable_online_version" --arg sha256 "$stable_sha256" --arg stableOnlineVersionShort "$stableOnlineVersionShort" --arg stableOnlineVersionMajor "$stableOnlineVersionMajor" 'with_entries(if .key == $stable_current_version then .value.tags |= . - ["latest","stable",$stableOnlineVersionMajor] else . end) | to_entries | . + [{ key: $stable_online_version, value: { sha256: $sha256, tags: ["latest","stable",("stable-" + $stable_online_version),$stableOnlineVersionMajor,$stableOnlineVersionShort,$stable_online_version]}}] | from_entries' "$tmpfile" > buildinfo.json
|
jq --arg stable_current_version "$stable_current_version" --arg stable_online_version "$stable_online_version" --arg sha256 "$stable_sha256" --arg stableOnlineVersionShort "$stableOnlineVersionShort" --arg stableOnlineVersionMajor "$stableOnlineVersionMajor" 'with_entries(if .key == $stable_current_version then .value.tags |= . - ["latest","stable",$stableOnlineVersionMajor] else . end) | to_entries | . + [{ key: $stable_online_version, value: { sha256: $sha256, tags: ["latest","stable",("stable-" + $stable_online_version),$stableOnlineVersionMajor,$stableOnlineVersionShort,$stable_online_version]}}] | from_entries' "$tmpfile" > buildinfo.json
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user