Repository navigation
Add deploy-gateway-mod.py from the old development machine - #429
Merged
Merged
Conversation
…a coordinated backup, cloned mod packs and verified restarts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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--applyit publishes the mod through the existingpublish-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 fromFACTORIO_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 byreconcile.mjsfor 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 ifreconcile.mjscovers it.Checks: parses and prints
--helpunder Python 3 (WSL), importing its siblingpublish-gateway-mod.py;check-pr-scope.ps1 -Base mainpasses. Not run against any cluster.