diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..bb6bc2bf --- /dev/null +++ b/.dockerignore @@ -0,0 +1,15 @@ +.idea +.git +.gitignore +.github +.dockerignore +Dockerfile +*.md +*.sh +*.yml +*.yaml +scripts +node_modules +.storybook +.next +**/*.stories.* diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index c7dd2eb2..16a8c858 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -45,7 +45,7 @@ jobs: run: | echo "${{ secrets.EC2_SSH_PRIVATE_KEY }}" > private_key.pem chmod 400 private_key.pem - ssh -i private_key.pem -o StrictHostKeyChecking=no ubuntu@ec2-3-34-183-188.ap-northeast-2.compute.amazonaws.com " + ssh -i private_key.pem -o StrictHostKeyChecking=no ubuntu@${{ secrets.EC2_PUBLIC_DOMAIN }} " aws ecr get-login-password --region ap-northeast-2 | sudo docker login --username AWS --password-stdin ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} && if [ \$(sudo docker ps -q -f name=${{ env.IMAGE_NAME }}) ]; then