Azure DevOps Pipeline
You can use our CLI inside a Azure DevOps Pipeline as any other tool CLI tool.
We also provide our own Docker image to run our CLI from it.
Let's understand how you can use our CLI Docker image in your Azure DevOps Pipeline to deploy your app.
Deploy using our CLI Image
You can use our CLI Image in your Azure DevOps Pipeline to deploy your app like this:
trigger:
- main
pr:
- main
jobs:
- job: deploy
pool:
vmImage: 'ubuntu-latest'
container:
image: zcloudws/zcloud-cli:azure
steps:
- checkout: self
- script: |
zcloud deploy --user-token $(ZCLOUD_USER_TOKEN) --env filipe-load-azure-pipeline-test
displayName: 'Deploy with Quave Cloud CLI'
Configurations:
- env: In Quave Cloud web app you get this value in the
Settings
tab of your app environment (Environment name
). - dir: the directory that you want to provide as the root directory of your app (optional).
- user-token: In Quave Cloud web app you get this token for your user at app.quave.cloud/profile. We recommend you to create a variable in your Azure DevOps Pipeline called
ZCLOUD_USER_TOKEN
.
With this configuration in place every time you push code to main
branch a deployment will be triggered.
To learn more options in our CLI check our CLI docs page.