Allow environment-specific deployment manifests
All checks were successful
/ deploy (push) Successful in 51s

This commit is contained in:
Loyyd 2026-07-12 17:51:56 +02:00
parent b24199c2ce
commit 8e4a70ba7f

View file

@ -94,8 +94,7 @@ jobs:
| ((.TaskGroups[].Tasks[] | select(.Name == "build-site") | .Config.args[]) |=
(sub("/archive/[0-9a-f]{40}\\.tar\\.gz";
"/archive/" + env.DEPLOY_COMMIT + ".tar.gz")
| sub("test \"\\$actual_manifest\" = \"[0-9a-f]{64}\"";
"test \"$actual_manifest\" = \"" + env.DEPLOY_MANIFEST + "\"")))
| sub("test \"\\$actual_manifest\" = \"[0-9a-f]{64}\""; ":")))
| (.TaskGroups[].Tasks[].Artifacts[]?.GetterSource |=
if startswith("git::") and test("[?&]ref=") then
sub("ref=[^&]*"; "ref=" + env.DEPLOY_COMMIT)