Initial GitOps template for Virto Cloud.
- GitOps repository structure for Virto Commerce Platform and Virto Cloud infrastructure.
- GitHub workflows for automatic deployment of Virto Commerce Platform and Virto Cloud infrastructure.
- .github/workflows - GitHub workflows folder with trigger on commit to the main branch.
- deploy-backend.yml - GitHub workflow with Cloud platform deployment actions.
- deploy-infra.yml - GitHub workflow with Cloud infra deployment actions.
- backend - Virto Commerce Platform deployment.
- packages.json - defines version of Virto Commerce Platform and modules.
- Dockerfile - Dockerfile for Virto Commerce Platform deployment.
- infra - declarative description of Virto Cloud infrastructure deployment.
- environment.yml
- Access to Virto Cloud Portal.
- Create and deploy new environment in Virto Cloud Portal.
- Download environment manifest from Virto Cloud Portal.
- Create API Key in Virto Cloud Portal (PLATFORM_TOKEN).
- DOCKER_LOGIN
- DOCKER_PASSWORD
- Enable GitOps in Virto Cloud Portal for the environment.
- Create a new repository in your GitHub account.
- Copy content of from this branch to your repository.
- Download environment manifest from Virto Cloud and put it to the infra folder.
If you use environment.yml from this repository, you need to replace the following placeholders:
- Replace TODO_YOUR_ENVIRONMENT_NAME with your environment name in the environment.yml file.
- Replace TODO_YOUR_FRONTEND_HOSTNAME with your frontend hostname in the environment.yml file.
- Replace TODO_YOUR_STORE_ID with your store id in the environment.yml file.
- Update packages.json file with the required version of Virto Commerce Platform and modules.
- Set DOCKER_LOGIN in deploy-backend.yml
- Go to the Settings tab of your repository.
- Go to the Secrets section.
- Add VIRTOSTART_ACR_DOCKER_PASSWORD and VIRTOSTART_PLATFORM_TOKEN secrets.
- Commit changes to the main branch.
- Review GitHub Actions logs.
- Review Virto Cloud Portal logs.