GitHub action to authenticate and consume StackSpot Cloud API.
Note: This action is supported on all runners operating systems (ubuntu
, macos
, windows
)
To get the account keys (CLIENT_ID
, CLIENT_KEY
and CLIENT_REALM
), please login using a ADMIN user on the StackSpot Portal, and generate new keys at https://stackspot.com/en/settings/access-token.
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.1
- name: Deploy repo application
uses: stack-spot/cloud-deploy-action@main
id: deploy
with:
CLIENT_REALM: ${{ secrets.CLIENT_REALM }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_KEY: ${{ secrets.CLIENT_KEY }}
APPLICATION_FILE: ${{ github.workspace }}/stackspot/application.yaml
IMAGE_TAG: latest
VERBOSE: true
Field | Mandatory | Default Value | Observation |
---|---|---|---|
CLIENT_ID | YES | N/A | StackSpot Client ID. |
CLIENT_KEY | YES | N/A | StackSpot Client KEY. |
CLIENT_REALM | YES | N/A | StackSpot Client Realm. |
APPLICATION_FILE | YES | N/A | StackSpot application config file (generally in stackspot folder) |
IMAGE_TAG | YES | N/A | Image tag to use for deploy |
VERBOSE | NO | false |
Whether to show extra logs during execution. (e.g: true ). |
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.1
- name: Deploy repo application
uses: stack-spot/cloud-deploy-action@stg
id: deploy
with:
CLIENT_REALM: ${{ secrets.CLIENT_REALM_STG }}
CLIENT_ID: ${{ secrets.CLIENT_ID_STG }}
CLIENT_KEY: ${{ secrets.CLIENT_KEY_STG }}
APPLICATION_FILE: ${{ github.workspace }}/stackspot/application-stg.yaml
IMAGE_TAG: latest
VERBOSE: true
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.1
- name: Deploy repo application
uses: stack-spot/cloud-deploy-action@dev
id: deploy
with:
CLIENT_REALM: ${{ secrets.CLIENT_REALM_DEV }}
CLIENT_ID: ${{ secrets.CLIENT_ID_DEV }}
CLIENT_KEY: ${{ secrets.CLIENT_KEY_DEV }}
APPLICATION_FILE: ${{ github.workspace }}/stackspot/application-dev.yaml
IMAGE_TAG: latest
VERBOSE: true