GitHub Action: spacelift-stack-deploy
Trigger Spacelist stack synchronously
Introduction
Spacelift is a sophisticated, continuous integration and deployment (CI/CD) platform for infrastructure-as-code. The GitHub action triggers Spacelift stack run to provistion infrastructure.
Usage
name: Pull Request
on:
pull_request:
branches: [ 'main' ]
types: [opened, synchronize, reopened, closed, labeled, unlabeled]
jobs:
infrastructure:
runs-on: ubuntu-latest
steps:
- uses: cloudposse/github-action-spacelift-stack-deploy@main
id: spacelift
with:
stack: eks-cluster
github_token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
organization: acme
api_key_id: ${{ secrets.SPACELIFT_API_KEY_ID }}
api_key_secret: ${{ secrets.SPACELIFT_API_KEY_SECRET }}
outputs:
outputs: ${{ steps.spacelift.outputs.outputs }}
Inputs
Name | Description | Default | Required |
---|---|---|---|
api_key_id | API Key ID | N/A | true |
api_key_secret | API Key Secret | N/A | true |
github_token | GitHub Token (Required to install Spacelift CLI) | N/A | true |
organization | Organization name | N/A | true |
stack | Stack name | N/A | true |
Outputs
Name | Description |
---|---|
outputs | Stack outputs |