Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

cloud-deploy-action

GitHub action to authenticate and consume StackSpot Run Cloud Platform API.

Note: This action is supported on all runners operating systems (ubuntu, macos, windows)

📚 Usage

Requirements

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. The credential needs the role cloud_platform enables to successfully consume the API.

Note: You can generate an application.yaml file, directly on the StackSpot Portal.

Use Case

steps:
- name: Checkout repositoryuses: actions/checkout@v4.2.1
- name: Deploy repo applicationuses: stack-spot/cloud-deploy-action@mainid: deploywith:
CLIENT_REALM: ${{ secrets.CLIENT_REALM }}CLIENT_ID: ${{ secrets.CLIENT_ID }}CLIENT_KEY: ${{ secrets.CLIENT_KEY }}APPLICATION_FILE: ${{ github.workspace }}/stackspot/application.yamlPARAMETERS: | PLACEHOLDER_1 >> VALUE_1 PLACEHOLDER_2 >> VALUE_2VERBOSE: trueBACKOFF_INITIAL: 10BACKOFF_FACTOR: 2BACKOFF_MAX_RETRIES: 15

▶️ Action Inputs

FieldMandatoryDefault ValueObservation
CLIENT_IDYESN/AStackSpot Client ID.
CLIENT_KEYYESN/AStackSpot Client KEY.
CLIENT_REALMYESN/AStackSpot Client Realm.
APPLICATION_FILEYESN/AStackSpot application config file (generally in stackspot folder)
PARAMETERSNON/APlaceholder values to replace in APPLICATION_FILE
VERBOSENOfalseWhether to show extra logs during execution. (e.g: true).
BACKOFF_INITIALNO5Initial wait time (in seconds) before retrying deployment status check.
BACKOFF_FACTORNO2Multiplicative factor for exponential backoff.
BACKOFF_MAX_RETRIESNO10Maximum number of retries for deployment status check.

License

Apache License 2.0


Development

To test this action on this repository during internal development, please use the setup below, using organization runners in private repositories:

DEV environment

steps:
- name: Checkout repositoryuses: actions/checkout@v4.2.1
- name: Deploy repo applicationuses: stack-spot/cloud-deploy-action@mainid: deploywith:
CLIENT_REALM: stackspot-devCLIENT_ID: ${{ secrets.CLIENT_ID_DEV }}CLIENT_KEY: ${{ secrets.CLIENT_KEY_DEV }}APPLICATION_FILE: ${{ github.workspace }}/stackspot/application.yamlVERBOSE: truePARAMETERS: | ...

STG environment

steps:
- name: Checkout repositoryuses: actions/checkout@v4.2.1
- name: Deploy repo applicationuses: stack-spot/cloud-deploy-action@mainid: deploywith:
CLIENT_REALM: stackspot-stgCLIENT_ID: ${{ secrets.CLIENT_ID_STG }}CLIENT_KEY: ${{ secrets.CLIENT_KEY_STG }}APPLICATION_FILE: ${{ github.workspace }}/stackspot/application.yamlVERBOSE: truePARAMETERS: | ...

About

StackSpot Cloud Github Actions to deploy applications

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages