Skip to content

Reset Staging DB

Reset Staging DB #5

name: Reset Staging DB
on:
workflow_dispatch:
jobs:
reset:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.CI_CD_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.CI_CD_AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
- name: Execute Task
run: |
aws ecs run-task --cluster wca-on-rails --capacity-provider-strategy capacityProvider=wca-on-rails-t3 --network-configuration "awsvpcConfiguration={subnets=[subnet-3f288648],securityGroups=[sg-0fff6bb04e7705712]}" --task-definition wca-on-rails-staging-db-reset