BitBucket Pipeline
You can use our CLI inside a BitBucket 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 BitBucket Pipeline to deploy your app.
Deploy using our CLI Image
You can use our CLI Image in your BitBucket pipeline to deploy your app like this:
image: zcloudws/zcloud-cli:latest
pipelines:
default:
- step:
name: Deploy
script:
- zcloud deploy --env <your environment name>
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 BitBucket Pipeline click on
Edit
and then underConfigure > Add variables
create a variable calledZCLOUD_USER_TOKEN
.
With this configuration in place you can run your pipeline as you wish.
To learn more options in our CLI check our CLI docs page.