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

119 Commits

Repository files navigation

runtime-deploy-action

Action test Ubuntu

GitHub action to run StackSpot Runtime Deploy Worker.

Note: This action is supported on debian/RHEl like systems

📚 Usage

Requirements

Use Case

Check how to implement the orchestration job using the runtime-manager-action

jobs:
job1:
runs-on: ubuntu-latestneeds: [orchestration]strategy:
matrix:
task: ${{ fromJSON(needs.orchestration.outputs.tasks) }}fail-fast: truemax-parallel: 1steps:
- name: DEPLOYif: contains( matrix.task.taskType , 'DEPLOY')uses: stack-spot/runtime-deploy-action@v2.3with:
FEATURES_LEVEL_LOG: debugCLIENT_ID: ${{ secrets.CLIENT_ID }}CLIENT_KEY: ${{ secrets.CLIENT_KEY }}CLIENT_REALM: ${{ secrets.CLIENT_REALM }}AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}AWS_REGION: sa-east-1REPOSITORY_NAME: my-repository-name RUN_TASK_ID: ${{ matrix.task.runTaskId }}CONTAINER_URL: my/container-url # not mandatoryFEATURES_TERRAFORM_MODULES: ... # not mandatoryOUTPUT_FILE: outputs_file_name.json # not mandatoryPATH_TO_MOUNT: path/to/mountLOCALEXEC_ENABLED: true # not mandatoryTF_LOG_PROVIDER: info # not mandatoryCHECKOUT_BRANCH: 'true'# not mandatory

▶️ Action Inputs

FieldMandatoryObservation
FEATURES_LEVEL_LOGYESLog Level
CLIENT_IDYESStackSpot Client ID.
CLIENT_KEYYESStackSpot Client KEY.
CLIENT_REALMYESStackSpot Client Realm.
AWS_ACCESS_KEY_IDNOAWS Access Key ID
AWS_SECRET_ACCESS_KEYNOAWS Secret Access Key
AWS_SESSION_TOKENNOAWS Session Token
AWS_ROLE_ARNNOAWS IAM ROLE (necessary if AWS credentials not informed)
AWS_REGIONYESAWS region where resources with be provisioned. Used for tf backend as well (e.g: us-east-1).
RUN_TASK_IDYESStackSpot Runtime task id to be executed, according to runtime-manager-action.
REPOSITORY_NAMEYESRepository name to checkout during task process.
CONTAINER_URLNOContainer url reference (e.g stackspot/image)
FEATURES_TERRAFORM_MODULESNOList of external terraform modules allowed
PATH_TO_MOUNTYESPath provided to be used as a volume within the docker image that will be used with terraform
OUTPUT_FILENOFilename where outputs will be saved (default value: outputs.json)
LOCALEXEC_ENABLEDNOWhether or not terraform will be enable to perform local exec operations or not (default: false)
TF_LOG_PROVIDERNOIf there is a need to check Terraform's own log, it is now possible to pass the levels of the Terraform provider, allowing you to analyze what happens within Terraform's CLI (info, trace, debug and warn).
CHECKOUT_BRANCHNOWhether or not checkout is enabled. (default: 'false')

License

Apache License 2.0

About

StackSpot Action to perform DEPLOY Self Hosted run task processes

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages