fix: pipe Portainer redeploy script to Alpine via stdin #20

Merged
elvis merged 1 commit from feat/cicd_improvements into main 2026-05-28 17:54:24 +00:00
Owner

Summary

The previous fix used a bind mount (-v /tmp/portainer-redeploy.sh:...) but the runner steps execute inside a Docker container — so /tmp is the runner container's filesystem, not the host's. The Docker daemon on the host can't find the file.

Fix: use docker run -i ... alpine sh << 'EOF' to pipe the script directly into the container via stdin. No file on disk needed.

Test plan

  • Merge to main → confirm the "Build and Push" workflow completes fully, including the redeploy step

🤖 Generated with Claude Code

## Summary The previous fix used a bind mount (`-v /tmp/portainer-redeploy.sh:...`) but the runner steps execute inside a Docker container — so `/tmp` is the runner container's filesystem, not the host's. The Docker daemon on the host can't find the file. Fix: use `docker run -i ... alpine sh << 'EOF'` to pipe the script directly into the container via stdin. No file on disk needed. ## Test plan - [ ] Merge to main → confirm the "Build and Push" workflow completes fully, including the redeploy step 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix: pipe redeploy script to Alpine via stdin instead of bind mount
Some checks failed
Test / test (pull_request) Failing after 3s
ab8e99b2e0
Runner steps execute inside a container, so /tmp files aren't visible
to the host Docker daemon when bind mounting.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
elvis merged commit 39e6c096f1 into main 2026-05-28 17:54:24 +00:00
elvis deleted branch feat/cicd_improvements 2026-05-28 17:54:25 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
elvis/actual-mcp!20
No description provided.