fix(ci): skip DO Spaces publish on fork builds, archive packages - #1785
Merged
Conversation
Fork PR builds never get DO_SPACE_ACCESS_KEY/DO_SPACE_SECRET_KEY (GitHub withholds secrets from pull_request runs from forks even with secrets: inherit), so rclone auth fails and the job dies after the image already built fine. Gate the rclone publish steps on secret presence and fall back to tarring bin/packages as an uploaded artifact. Assisted-by: Claude Code:claude-sonnet-5
Tbaile
approved these changes
Jul 10, 2026
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.
Summary
DO_SPACE_ACCESS_KEY/DO_SPACE_SECRET_KEY(GitHub withholds secrets frompull_requestruns originating from forks, even withsecrets: inherit), so the "Copy Packages to repo" rclone step fails auth and the whole job dies even though the image built successfully.Setup rclone/Copy Packages to reposteps on secret presence.bin/packagesand upload it as apackages-archiveartifact instead of failing.Fixes: https://github.com/NethServer/nethsecurity/actions/runs/29031501244/job/86297708834