Compare commits
1 Commits
agent-v2.0
...
agent-v2.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f18b45e3f2 |
@@ -81,7 +81,21 @@ jobs:
|
|||||||
MINISIGN="$(find /tmp -type f -name minisign -path '*linux*' | head -1)"
|
MINISIGN="$(find /tmp -type f -name minisign -path '*linux*' | head -1)"
|
||||||
chmod +x "$MINISIGN"
|
chmod +x "$MINISIGN"
|
||||||
"$MINISIGN" -v
|
"$MINISIGN" -v
|
||||||
|
# A minisign secret key file is TWO lines (comment + base64 blob). CI
|
||||||
|
# secret storage mangles embedded newlines, collapsing it to one line
|
||||||
|
# so minisign can't load it. Preferred form: store the secret
|
||||||
|
# base64-encoded (single line) — we decode it here. Auto-detect so a
|
||||||
|
# correctly-stored raw two-line key still works.
|
||||||
|
if printf '%s' "$MINISIGN_SECRET_KEY" | base64 -d 2>/dev/null | head -1 | grep -q "untrusted comment:"; then
|
||||||
|
printf '%s' "$MINISIGN_SECRET_KEY" | base64 -d > /tmp/sign.key
|
||||||
|
else
|
||||||
printf '%s\n' "$MINISIGN_SECRET_KEY" > /tmp/sign.key
|
printf '%s\n' "$MINISIGN_SECRET_KEY" > /tmp/sign.key
|
||||||
|
fi
|
||||||
|
if ! head -1 /tmp/sign.key | grep -q "untrusted comment:"; then
|
||||||
|
echo "::error::MINISIGN_SECRET_KEY is neither base64 of a minisign key nor a raw two-line key file. Store it as: base64 < your-secret.key | tr -d '\n'"
|
||||||
|
rm -f /tmp/sign.key
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
cd corrosion-host-agent/bin
|
cd corrosion-host-agent/bin
|
||||||
# Passwordless key (-W generated); feed empty stdin so it never blocks.
|
# Passwordless key (-W generated); feed empty stdin so it never blocks.
|
||||||
for f in corrosion-host-agent-linux-amd64 corrosion-host-agent-windows-amd64.exe checksums.txt; do
|
for f in corrosion-host-agent-linux-amd64 corrosion-host-agent-windows-amd64.exe checksums.txt; do
|
||||||
|
|||||||
2
corrosion-host-agent/Cargo.lock
generated
2
corrosion-host-agent/Cargo.lock
generated
@@ -276,7 +276,7 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "corrosion-host-agent"
|
name = "corrosion-host-agent"
|
||||||
version = "2.0.0-alpha.6"
|
version = "2.0.0-alpha.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-nats",
|
"async-nats",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "corrosion-host-agent"
|
name = "corrosion-host-agent"
|
||||||
version = "2.0.0-alpha.7"
|
version = "2.0.0-alpha.8"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Corrosion Host Agent — multi-game ops runtime for self-hosted game servers"
|
description = "Corrosion Host Agent — multi-game ops runtime for self-hosted game servers"
|
||||||
license = "UNLICENSED"
|
license = "UNLICENSED"
|
||||||
|
|||||||
Reference in New Issue
Block a user