- Terraform Apply – Terraform apply
- Terraform Plan – Terraform plan
- Serverless Deploy (Node.js) – Serverless deploy for Node.js apps
- CI (Node.js) – Test & Lint for Node.js apps
- Publish (NPM) – Test, Build & Publish to NPM registry for Node.js apps
- Create Release – Create GitHub release
OPTION | TYPE |
---|---|
working-directory | ?string (default: tf ) |
apply-command | ?string (default: terraform init | terraform apply ) |
jobs:
apply:
uses: DustFoundation/shared-actions/.github/workflows/[email protected]
secrets:
aws-id: ${{ secrets.AWS_ID_DEV }}
aws-secret: ${{ secrets.AWS_SECRET_DEV }}
git-read-key: ${{ secrets.GIT_READ_KEY }}
- If you have environments in folders:
with:
working-directory: tf/_env/dev
- If you have a script for configure backend:
with:
apply-command: ./apply-stage.sh
- If you want to define terraform command for each stage
with:
apply-command: |
terraform init -backend-config="key=stage/frontend.tfstate"
terraform apply -auto-approve -var-file stage.tfvars
OPTION | TYPE |
---|---|
working-directory | ?string (default: tf ) |
jobs:
plan:
uses: DustFoundation/shared-actions/.github/workflows/[email protected]
secrets:
aws-id: ${{ secrets.AWS_ID_DEV }}
aws-secret: ${{ secrets.AWS_SECRET_DEV }}
git-read-key: ${{ secrets.GIT_READ_KEY }}
- If you have environments in folders:
with:
working-directory: tf/_env/dev
OPTION | TYPE |
---|---|
stage | enum: dev | stage | prod |
node-version | ?number (default: 16 ) |
jobs:
deploy:
uses: DustFoundation/shared-actions/.github/workflows/[email protected]
with:
stage: dev
secrets:
aws-id: ${{ secrets.AWS_ID_DEV }}
aws-secret: ${{ secrets.AWS_SECRET_DEV }}
git-read-key: ${{ secrets.GIT_READ_KEY }}
OPTION | TYPE |
---|---|
node-version | ?number (default: 16 ) |
jobs:
ci:
uses: DustFoundation/shared-actions/.github/workflows/[email protected]
secrets:
aws-id: ${{ secrets.AWS_ID_DEV }}
aws-secret: ${{ secrets.AWS_SECRET_DEV }}
git-read-key: ${{ secrets.GIT_READ_KEY }}
OPTION | TYPE |
---|---|
node-version | ?number (default: 16 ) |
jobs:
publish:
uses: DustFoundation/shared-actions/.github/workflows/[email protected]
secrets:
npm-publish-token: ${{ secrets.NPM_PUBLISH_TOKEN }}
OPTION | TYPE |
---|---|
prerelease | ?boolean (default: true ) |
jobs:
release:
uses: DustFoundation/shared-actions/.github/workflows/[email protected]