Automatic deployments
How a deployment gets triggered depends on what the service was created from - a source repo, a Docker image, or a Helm chart.GitHub/GitLab repos
Whenever your team pushes new code to Git repository, LocalOps can automatically pull the hcanges, build them as Docker images very quickly and deploy seamlessly on the corresponding environment. If you have a local development environment for the git repository configured for the given service, you can simply follow these steps to start deployment.For commits to get automatically deployed, the github user who made the commits, must be added to your LocalOps
account as a user. And they must have linked their Github profile with LocalOps from inside Profile settings:
https://console.localops.co/profile
Docker images
A service created from a Docker image has no repo to watch, so there is no push event to react to. Trigger the deployment from wherever you publish the image - typically the last step of the pipeline that pushed the new tag - by calling the Deploy Service endpoint with the tag you just published:- GitHub Actions
- GitLab CI
Use our deploy action rather than calling the endpoint by hand:Store the token as an encrypted secret. Pass exactly one of
commit_id, docker_image_tag or
helm_chart_version - whichever matches how the service was created.Helm charts
A service created from a Helm chart works the same way, with the chart version in place of the image tag:- GitHub Actions
- GitLab CI
All three shapes are the same endpoint - it takes
commit_id, docker_image_tag or helm_chart_version depending
on how the service was created. See the Deploy Service reference for the full
request and response schema.Manual deployment
- Click on “environments” on the left
- Navigate into the relevant environment
- Navigate to Services tab
- Click on the service where you want to trigger new deployment
- On the top right corner, click on “Deploy”.
- Verify the details on the confirmation window - the commit for a repo-based service, the image tag for a Docker image service, or the chart version for a Helm chart service
- Click on “Confirm” to proceed.