Skip to main content

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: github-action-spacelift-stack-deploy
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

NameDescriptionDefaultRequired
api_key_idAPI Key IDN/Atrue
api_key_secretAPI Key SecretN/Atrue
github_tokenGitHub Token (Required to install Spacelift CLI)N/Atrue
organizationOrganization nameN/Atrue
stackStack nameN/Atrue

Outputs

NameDescription
outputsStack outputs