メインの Rails アプリケーション
docker-compose build
docker-compose run --rm app yarn install --check-files
docker-compose run --rm app bin/setupdocker-compose up
open http://localhost:13000docker compose up db
rails s
open http://localhost:3000/docker-compose run --rm app bin/rails testdocker-compose run --rm app rubocop- (初回のみ)
aws ecs run-task --cluster internship-aug2022-2 --task-definition internship-aug2022-2-db-create --launch-type FARGATE --network-configuration '{"awsvpcConfiguration":{"subnets":["subnet-0334f01a7f2e84910","subnet-06e60f8f517606654","subnet-0df45f1bdece2446d"],"securityGroups": ["sg-0ee03f05942978041"],"assignPublicIp":"ENABLED"}}' --count 1でrails db:createを本番環境のDBに適用し、この Rails アプリが使用する MySQL のデータベースを作成する。 - GitHub Actions タブの deploy ワークフロー に移動
This workflow has a workflow_dispatch event trigger.の右側にあるRun WorkflowボタンをクリックUse workflow fromのセレクトボックスからデプロイ対象のブランチを選択Run Workflowボタンをクリック