You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deploy with a deploy key, a trial run and a full rollback - #14
Fetches main with a read-only deploy key instead of a token. The new image is tried on a copy of the database before the real container is replaced, and a rollback restores files, image and database. Adds /version, which the Deploy workflow uses to record each deploy on GitHub. Fixes the three review findings on #13.
The polling loop can run for up to 45 × (10 seconds for curl --max-time + 20 seconds of sleep) = 1,350 seconds, which is 22.5 minutes. That exceeds the job's 20-minute timeout and contradicts the 15-minute failure message, so a slow/unreachable endpoint can cancel the job before this workflow reports a failure. Reduce the iteration bound or otherwise make the loop's worst-case duration fit both limits.
Cleanup deletes operator-owned empty directories
deploy/deploy.sh:53
This cleanup scans all of APP_DIR, not just directories that belonged to the previous commit. It therefore deletes any empty operator-owned directory, despite the surrounding contract that files and directories the repository does not own stay untouched. Restrict the directory cleanup to parent directories of the files removed from the Git tree (or to repository-owned roots).
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
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.
Fetches main with a read-only deploy key instead of a token. The new image is tried on a copy of the database before the real container is replaced, and a rollback restores files, image and database. Adds /version, which the Deploy workflow uses to record each deploy on GitHub. Fixes the three review findings on #13.