Add install-local command for portable CI/CD installation - #8
Conversation
Co-authored-by: YoungMayor <47315212+YoungMayor@users.noreply.github.com>
Co-authored-by: YoungMayor <47315212+YoungMayor@users.noreply.github.com>
Co-authored-by: YoungMayor <47315212+YoungMayor@users.noreply.github.com>
Co-authored-by: YoungMayor <47315212+YoungMayor@users.noreply.github.com>
|
On the README.md, you made a slight miscommunication. You stated that the user needed to do "# One-time setup (or commit the files to your repo)" on their CICD, that is wrong, as the local installation is done locally, and when it is done, the user would not need to do any form of installing again on CICD, just use the secureflow.sh file that was added. You get ? |
Co-authored-by: YoungMayor <47315212+YoungMayor@users.noreply.github.com>
You're absolutely right! I've clarified the README in commit 5500339. The documentation now clearly separates two approaches: Approach A: Download and install during each CI/CD run (if you don't want to commit the files) Approach B (Recommended): Run The confusing comment "One-time setup (or commit the files to your repo)" has been removed and replaced with clear separate examples showing that when files are committed to the repo, the CI/CD workflow is simply: - uses: actions/checkout@v3
- name: Decrypt secrets
run: ./secureflow.sh decrypt --password "${{ secrets.PASSWORD }}" --non-interactiveNo installation step needed in CI/CD when using Approach B. |
v1.2.0:
secureflow install-localcommand - COMPLETE ✅cmd/install_local.gocommand file.secureflow/directorysecureflow.shlauncher script templatesecureflow.shto current directorySummary
Successfully implemented the
secureflow install-localcommand for v1.2.0 exactly as requested.Latest Update (addressing feedback):
Clarified README.md documentation to make it crystal clear that:
install-localis run LOCALLY (on developer's machine), not in CI/CD.secureflow/andsecureflow.shto your repo, CI/CD needs NO installation step./secureflow.shdirectly (RECOMMENDED)Key Features:
✅ No sudo required - Perfect for restricted CI/CD environments
✅ Cross-platform - Automatically detects OS and architecture
✅ Portable - Can commit
.secureflow/andsecureflow.shto your repo✅ Simple - Just run
./secureflow.sh [command]in CI/CD✅ Robust - Includes timeout, error handling, and success validation
Files Changed:
cmd/root.go- Updated version to 1.2.0cmd/install_local.go- New command (172 lines)cmd/secureflow.sh- Launcher script template (74 lines)README.md- Comprehensive documentation with clearer examples.gitignore- Added helpful comments about local installation filesReady for release! 🚀
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.