feat(indexer): new package #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Terraform Deployment | |
# on: | |
# repository_dispatch: | |
# types: [deploy-command] | |
on: | |
pull_request: | |
concurrency: | |
group: deploy-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
terraform: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v1 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8.1.0 | |
- name: Configure DigitalOcean credentials | |
run: | | |
aws configure --profile digitalocean set aws_access_key_id ${{ secrets.DO_ACCESS_KEY }} | |
aws configure --profile digitalocean set aws_secret_access_key ${{ secrets.DO_SECRET_ACCESS_KEY }} | |
- name: Set DigitalOcean Profile | |
run: | | |
echo "export AWS_PROFILE=digitalocean" >> $GITHUB_ENV | |
- name: Create .tfvars file | |
run: | | |
echo "do_token=${{ secrets.DO_TOKEN }}" >> ./terraform/.tfvars | |
echo "project_id=${{ secrets.DO_PROJECT_ID }}" >> ./terraform/.tfvars | |
- name: Terraform Init | |
run: pnpm terraform install | |
- name: Terraform Plan | |
run: pnpm terraform plan | |
- name: Terraform Apply | |
run: pnpm terraform apply |