3 ms·
I do this with gitlab and Cron. Commit to main on gitlab and a ci script builds the project and sftps a zip to the staging server. A Cron job checks for new zip
by xupybd 3y ago
I do this with gitlab and Cron. Commit to main on gitlab and a ci script builds the project and sftps a zip to the staging server. A Cron job checks for new zips in the directory and unzips, then installs the update. After that it restarts the job and I have a new version ready to test in staging.
- J_tt 3y agoHave you considered installing a GitLab runner on your deploy machine to run jobs specifically tagged to deploy that app? It’s a super easy setup and saves managing SSH keys in env variables etc while still being really quick!
- xupybd 3y agoI didn't think about doing that. It's a great idea.