Update release pipeline for correct secret names and simplified ZIP naming #34
Merged
Copilot
merged 7 commits from 2026-01-05 08:36:52 +00:00
copilot/create-build-scripts-for-releases into main
Labels
Clear labels
automation
breaking-change
bug
build
ci-cd
config
css
dependencies
deploy-failure
docker
documentation
dolibarr
duplicate
enhancement
generic
good first issue
health-check
health: excellent
health: fair
health: good
health: poor
help wanted
html
invalid
javascript
joomla
major-release
minor-release
mokostandards
needs-changelog
needs-review
needs-testing
patch-release
php
priority: critical
priority: high
priority: low
priority: medium
push-failure
python
question
regression
release
release-candidate
security
size/l
size/m
size/s
size/xl
size/xs
size/xxl
standards-drift
standards-update
standards-violation
status: blocked
status: in-progress
status: on-hold
status: pending
status: wontfix
sync-failure
sync-report
template-validation-failure
test-failure
tests
type: bug
type: chore
type: enhancement
type: feature
type: refactor
type: release
type: test
type: version
typescript
version
version-branch
version-drift
version-update
wontfix
work-in-progress
bug
chore
documentation
enhancement
feature
priority: critical
priority: high
priority: low
priority: medium
refactor
scope: client
scope: dolibarr
scope: infrastructure
scope: joomla
scope: waas
security
status: blocked
status: duplicate
status: in-progress
status: needs-review
status: wontfix
Automated processes or scripts
Breaking API or functionality change
Something isn't working
Build system changes
CI/CD pipeline changes
Configuration file changes
CSS/styling changes
Dependency updates
Automated deploy failure tracking
Docker configuration changes
Documentation changes
Dolibarr module or extension
This issue or pull request already exists
New feature or request
Generic project or library
Good for newcomers
Repository health check results
Health score 90-100
Health score 50-69
Health score 70-89
Health score below 50
Extra attention is needed
HTML template changes
This doesn't seem right
JavaScript code changes
Joomla extension or component
Major version release (breaking changes)
Minor version release (XX.YY.00)
MokoStandards compliance
Awaiting code review
Requires manual or automated testing
Patch version release (XX.YY.ZZ)
PHP code changes
Critical priority, must be addressed immediately
High priority
Low priority
Medium priority
File push failure requiring attention
Python code changes
Further information is requested
Regression from a previous working state
Release related PR
Release candidate build
Security-related changes
Large change (101-300 lines)
Medium change (31-100 lines)
Small change (11-30 lines)
Extra large change (301-1000 lines)
Extra small change (1-10 lines)
Extremely large change (1000+ lines)
Repository drifted from MokoStandards
MokoStandards sync update
Standards compliance failure
Blocked by another issue or dependency
Currently being worked on
Temporarily on hold
Pending action or decision
This will not be worked on
Bulk sync failure requiring attention
Bulk sync run report
Template workflow validation failure
Automated test failure
Test suite changes
Something isn't working
Maintenance tasks
Enhancement to existing feature
New feature or request
Code refactoring
Release preparation or tracking
Test suite additions or changes
Version-related change
TypeScript code changes
Version bump or release
Version branch related
Version mismatch detected
Version bump and release PR
This will not be worked on
Work in progress, not ready for merge
Something is not working
Maintenance and housekeeping
Documentation improvements
Improvement to existing functionality
New feature or request
Must fix immediately
Should fix soon
Nice to have
Fix when convenient
Code restructuring without behavior change
Client-specific work
Dolibarr modules and customizations
Server, CI, backups, monitoring
Joomla templates and extensions
MokoWaaS platform
Security vulnerability or hardening
Waiting on external dependency
Duplicate of another issue
Being worked on
Ready for review
Will not be addressed
No Label
Milestone
No items
No Milestone
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: MokoConsulting/MokoCassiopeia#34
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "copilot/create-build-scripts-for-releases"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull Request
Purpose
Align release pipeline with deployment requirements: use
FTP_SERVERsecret, simplify ZIP naming to{repo}-{version}-{suffix}.zip, ensure ZIPs contain only src folder contents for direct installation, and maintain version branch when promoting to main.Change Summary
Secret naming
FTP_HOST→FTP_SERVERin workflows and documentationZIP artifact changes
moko-cassiopeia-3.5.0-rc-joomla-template.zipmoko-cassiopeia-3.5.0-rc.ziprcfor prerelease,stablefor releasesrc/folder)Build logic
SFTP path structure
{FTP_PATH}/{FTP_PATH_SUFFIX}/{channel}(separate folders per channel){FTP_PATH}/{FTP_PATH_SUFFIX}/rc/{FTP_PATH}/{FTP_PATH_SUFFIX}/stable/{repo}-{version}-rc.zipvs{repo}-{version}-stable.zipRelease promotion to main
Testing Evidence
Risk and Rollback
Breaking changes
FTP_SERVERsecret (oldFTP_HOSTwill fail)/rc/or/stable/)Rollback
6c04a90,7b02756,f7c05ab,bbb5058and update secrets back toFTP_HOSTChecklist
Reviewer Notes
Files modified:
.github/workflows/release_pipeline.yml- ZIP naming, build, SFTP path, merge strategy.github/workflows/repo_health.yml- Secret validationdocs/*.md- Secret name references (4 files)Key changes:
Review and Approval
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
@copilot When promoted to stable also squash to main keeping version branch
Implemented in commits
f7c05ab(squash merge) and7b02756(unified SFTP path). When promoted to stable, the workflow now:{FTP_PATH}/{FTP_PATH_SUFFIX}@copilot Change squash command to merge
Changed in commit
6c04a90. Reverted from--squashto--mergeand restored separate SFTP folders using{FTP_PATH}/{FTP_PATH_SUFFIX}/{channel}convention.Pull request overview
This PR updates the release pipeline to align with deployment requirements by renaming the FTP secret from
FTP_HOSTtoFTP_SERVER, simplifying ZIP file naming, and restructuring the build process to create installation-ready archives with extension files at the root level.Key Changes:
FTP_HOSTtoFTP_SERVERacross all workflows and documentation{repo}-{version}-{channel}-{platform}-{type}.zipto{repo}-{version}-{suffix}.zipwhere suffix isrcorstablesrc/folder directly (not the folder itself) for immediate installation compatibilityReviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
.github/workflows/release_pipeline.ymlFTP_SERVER, simplified ZIP naming logic, removed platform detection, and modified build script to archivesrccontents at root level.github/workflows/repo_health.ymlFTP_HOSTtoFTP_SERVERdocs/WORKFLOW_GUIDE.mdFTP_HOSTtoFTP_SERVERdocs/REUSABLE_WORKFLOWS.mdFTP_HOSTtoFTP_SERVERthroughoutdocs/MIGRATION_CHECKLIST.mdFTP_SERVERinstead ofFTP_HOSTdocs/CI_MIGRATION_PLAN.mdFTP_SERVER💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The directory change pattern using
cd srcfollowed bycd ..is fragile when combined withset -euo pipefail. If thezipcommand fails, the script will exit beforecd ..executes, potentially leaving subsequent commands in an unexpected directory state. Consider using a subshell to ensure the working directory is automatically restored.A safer pattern would be:
This ensures that even if an error occurs, the working directory change is contained within the subshell and automatically reverted when the subshell exits.
This example deployment step disables SFTP host key verification via the
set sftp:auto-confirm yes;setting, which will automatically trust any host key presented by the server. An attacker on the network path could impersonate the SFTP server, captureFTP_USER/FTP_PASSWORD, and receive deployment artifacts while the workflow appears to succeed. To harden this pattern, remove automatic host key acceptance and instead pin the expected host key (e.g., via a controlledknown_hostsfile or equivalent lftp configuration) so connections fail if the server key is unexpected.