Skip to main content

CI/CD and Non-Interactive Jobs

Pipeline jobs should be reproducible and fail fast when credentials or paths are wrong.

Pipeline Pattern

ci-step.sh
rclone version
rclone lsd remote-ci:
rclone sync ./artifact remote-ci:releases/${CI_COMMIT_SHA} --checksum --log-level INFO
ControlWhy it matters
Explicit --config pathAvoid runner user-context surprises
Secret injection from CI vaultPrevents secret-in-repo issues
Dry-run gate for destructive jobsStops accidental delete events
Post-sync checkConfirms published artifact integrity

Mapping

Example Verify Stage

rclone check ./artifact remote-ci:releases/${CI_COMMIT_SHA} --one-way
warning

Never use broad production credentials in shared CI runners.

Common Pitfalls

PitfallEffectPrevention
Interactive OAuth in CIJob hangs/failsUse service credentials
Non-unique destination pathRelease overwriteInclude commit/tag in target path
Missing verification stageCorrupt artifacts pass downstreamAdd integrity checks

What's Next