Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/copy-database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ name: Copy Database

on:
workflow_call:
inputs:
environment:
required: true
type: string
secrets:
aws-oidc-role-arn:
required: true
Expand All @@ -19,7 +15,6 @@ on:
jobs:
Export:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
container:
image: ghcr.io/toumoro/tm-ansible:latest
permissions:
Expand Down Expand Up @@ -53,7 +48,7 @@ jobs:
run: |
ansible-playbook -i /ansible/inventory/ssm.ini \
-e env_type=${TM_DB_ENV_TYPE} \
tm-ansible/playbooks/db-export.yml --limit ecs_db_export_instance
/ansible/playbooks/db-export.yml

- name: Save artifact
uses: actions/upload-artifact@v4
Expand Down
6 changes: 0 additions & 6 deletions templates/database-export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ permissions:
jobs:
DatabaseExport:
uses: toumoro/tm-workflows/.github/workflows/copy-database.yml@v1
with:
environment: >-
${{ github.ref_name == 'prod' && 'production'
|| github.ref_name == 'staging' && 'staging'
|| github.ref_name == 'migration' && 'migration'
}}
secrets:
aws-oidc-role-arn: ${{ secrets.TM_CLIENT_AWS_OIDC_ROLE_ARN }}
tm-tmdt-aws-oidc-role-arn: ${{ secrets.TM_TMDT_AWS_OIDC_ROLE_ARN }}