Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imageのpushの自動化 #41

Open
ayuki-joto opened this issue Jul 11, 2024 · 0 comments
Open

imageのpushの自動化 #41

ayuki-joto opened this issue Jul 11, 2024 · 0 comments

Comments

@ayuki-joto
Copy link

こちらの部分で手動でpushしているが、decidimでも使ってますが、こちら使うとimageのpushをcdk実行時に同時に行えます。
https://github.com/cdklabs/cdk-ecr-deployment

### Docker Image を push
#### Frontend
1. `aws ecr get-login-password --region ap-northeast-1 --profile cfj_pgf | docker login --username AWS --password-stdin 905418185537.dkr.ecr.ap-northeast-1.amazonaws.com`
2. `docker build -t web2qf-frontend:latest -f ./Dockerfile .`
3. `docker tag web2qf-frontend:latest 905418185537.dkr.ecr.ap-northeast-1.amazonaws.com/stg-web2qf-frontend:latest`
4. `docker push 905418185537.dkr.ecr.ap-northeast-1.amazonaws.com/stg-web2qf-frontend:latest`
### Backend
1. `aws ecr get-login-password --region ap-northeast-1 --profile cfj_pgf | docker login --username AWS --password-stdin 905418185537.dkr.ecr.ap-northeast-1.amazonaws.com`
2. `docker build -t web2qf-backend:latest -f ./Dockerfile .`
3. `docker tag web2qf-backend:latest 905418185537.dkr.ecr.ap-northeast-1.amazonaws.com/stg-web2qf-backend:latest`
4. `docker push 905418185537.dkr.ecr.ap-northeast-1.amazonaws.com/stg-web2qf-backend:latest`
## AppStack のデプロイ
```
$ yarn deploy -c stage=stg stgweb2qfBackendApp
```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant