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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

10 Commits

Repository files navigation

runtime-rollback-action

GitHub action to authenticate and consume StackSpot Runtime API to perform self-hosted rollback to a target version or tag.

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.

Use Case

steps:
- uses: stack-spot/runtime-rollback-action@v1id: runwith:
CLIENT_ID: ${{ secrets.CLIENT_ID }}CLIENT_KEY: ${{ secrets.CLIENT_KEY }}CLIENT_REALM: ${{ secrets.CLIENT_REALM }}WORKSPACE: my_workspaceENVIRONMENT: my_environmentVERSION_TAG: my_tagTF_STATE_BUCKET_NAME: my_bucketTF_STATE_REGION: regionIAC_BUCKET_NAME: my_bucketIAC_REGION: regionVERBOSE: true # not mandatoryWORKDIR: ./my-folder # not mandatory
- name: Check Run Tasks Datarun: echo "Tasks = ${{ steps.run.outputs.tasks }}"shell: bash

▶️ Action Inputs

FieldMandatoryDefault ValueObservation
CLIENT_IDYESN/AStackSpot Client ID.
CLIENT_KEYYESN/AStackSpot Client KEY.
CLIENT_REALMYESN/AStackSpot Client Realm.
WORKSPACEYESN/AStackSpot Workspace where the project has been registered.
ENVIRONMENTYESN/AStackSpot Environment where the project will be deployed.
VERSION_TAGYESN/ARollback intended tag
TF_STATE_BUCKET_NAMEYESN/AAWS S3 Bucket name where the generated tfstate files will be stored.
TF_STATE_REGIONYESN/AAWS region where the TF State will be stored (e.g: us-east-1).
IAC_BUCKET_NAMEYESN/AAWS S3 Bucket name where the generated IaC files will be stored.
IAC_REGIONYESN/AAWS region where the IaC will be stored (e.g: us-east-1).
VERBOSENOfalseWhether to show extra logs during execution. (e.g: true).
BRANCHNON/ARepository branch to checkout if necessary (e.g: main).

License

Apache License 2.0

About

No description or website provided.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages