This action provide the following functionality for Github Actions users:
- Login to Kuzzle PaaS and get access to our licensed products.
- Deploy a new version of your application.
- Rollback to the previous live version of the targeted application if the deployment fails.
| Input | default | Required |
|---|---|---|
| username | true | |
| password | true | |
| project | true | |
| environment | main |
|
| application | api |
|
| image | true | |
| login_only | false |
|
| npmrc_output_dir | . |
|
| paas_api | https://console.paas.kuzzle.io |
|
| paas_packages | packages.paas.kuzzle.io |
|
| timeout | 60 |
|
| rollback | false |
projectis Required by default but not required iflogin_onlyis set totrue.
uses: kuzzleio/paas-action@v1.x.x
with:
username: ${{ secrets.KUZZLE_PAAS_USERNAME }}
password: ${{ secrets.KUZZLE_PAAS_PASSWORD }}
login_only: true
# You can also choose where to save the produced .npmrc
npmrc_output_dir: ./backenduses: kuzzleio/paas-action@v1.x.x
with:
username: ${{ secrets.KUZZLE_PAAS_USERNAME }}
password: ${{ secrets.KUZZLE_PAAS_PASSWORD }}
project: my-project
environment: main
application: api
image: harbor.paas.kuzzle.io/my-project/main/api:my-tag
timeout: 45NOTE: It will rollback to the previous live version of the targeted application.
uses: kuzzleio/paas-action@v1.x.x
with:
username: ${{ secrets.KUZZLE_PAAS_USERNAME }}
password: ${{ secrets.KUZZLE_PAAS_PASSWORD }}
project: my-project
environment: main
application: api
image: harbor.paas.kuzzle.io/my-project/main/api:my-tag
rollback: true
timeout: 90The scripts and documentation in this project are released under the MIT License