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 |
project
is Required by default but not required iflogin_only
is set totrue
.
uses: kuzzleio/[email protected]
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: ./backend
uses: kuzzleio/[email protected]
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: 45
NOTE: It will rollback to the previous live version of the targeted application.
uses: kuzzleio/[email protected]
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: 90
The scripts and documentation in this project are released under the MIT License