diff --git a/.github/workflows/copy-database.yml b/.github/workflows/copy-database.yml index 005e113..25b59ea 100644 --- a/.github/workflows/copy-database.yml +++ b/.github/workflows/copy-database.yml @@ -6,10 +6,6 @@ name: Copy Database on: workflow_call: - inputs: - environment: - required: true - type: string secrets: aws-oidc-role-arn: required: true @@ -19,7 +15,6 @@ on: jobs: Export: runs-on: ubuntu-latest - environment: ${{ inputs.environment }} container: image: ghcr.io/toumoro/tm-ansible:latest permissions: @@ -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 diff --git a/templates/database-export.yml b/templates/database-export.yml index 0739b05..c5990fa 100644 --- a/templates/database-export.yml +++ b/templates/database-export.yml @@ -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 }} \ No newline at end of file