Skip to content

Add deploy-gateway-mod.py from the old development machine - #429

Merged
solarcloud7 merged 1 commit into
mainfrom
tools/deploy-gateway-mod
Oct 29, 2026
Merged

solarcloud7 merged 1 commit into
mainfrom
tools/deploy-gateway-mod

Conversation

@solarcloud7

Copy link
Copy Markdown
Owner

Adds tools/release/deploy-gateway-mod.py, which until now existed only as an untracked file on the old development machine (last modified 2026-09-26). It is committed unchanged so it survives the move to a new machine.

What it does (from its own requires:/produces:/does not: header): given a reviewed ZIP and its SHA-256, an explicit Docker deployment profile and an evidence path, it runs a read-only preflight by default; with --apply it publishes the mod through the existing publish-gateway-mod.py, takes a coordinated backup, clones the mod packs and verifies the instance restarts. It does not release the npm plugin, upgrade Factorio, reset saves, reopen firewalls or roll back automatically. The portal key comes from FACTORIO_MOD_PORTAL_API_KEY; SSH targets come from the profile.

Overlap to review: the current release path is release-gateway-mod.mjs (publish through the gateway-mod workflow) followed by reconcile.mjs for the mod pack and restarts. This script predates that and has no tests or documentation here; merging it keeps it in source control, and it can be retired later if reconcile.mjs covers it.

Checks: parses and prints --help under Python 3 (WSL), importing its sibling publish-gateway-mod.py; check-pr-scope.ps1 -Base main passes. Not run against any cluster.

…a coordinated backup, cloned mod packs and verified restarts
@solarcloud7
solarcloud7 merged commit 306fc2e into main Oct 29, 2026
7 checks passed
@solarcloud7
solarcloud7 deleted the tools/deploy-gateway-mod branch October 29, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant