Deploying built files without a CI service
Typically, the step to build files in a CI service is scripted by the nature of CI tasks. However, if for any reason a CI service is unavailable it is still possible to deploy built files.
- Clone the repository.
- Checkout the working branch with the code that needs to be built (e.g.
production
). - Run the build process (e.g.
npm install
). - Create another clone of the repository, and check out the built branch that is configured to deploy to the environment (e.g.
git checkout production-built
). - Copy changes from the development copy to the deployment copy using a tool like rsync.
- Verify the changes. They should only include built code and not development modules and dependencies.
- Commit and push the changes to the remote repository of the deployment branch (e.g.
git push origin production-built
). - VIP’s infrastructure will detect the changes and deploy the built code to the environment(s) configured to that branch.
Last updated: December 22, 2023