diff --git a/buildspec.yml b/buildspec.yml index bd01ff51..fd724adb 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -3,15 +3,15 @@ phases: pre_build: commands: - echo Logging in to Amazon ECR... - - aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/about + - aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/frontend build: commands: - echo Building the Docker image... - - docker build -t 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/about/front:latest . + - docker build -t 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/frontend/frontend:latest . post_build: commands: - echo Pushing the Docker image to ECR... - - docker push 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/about/front:latest + - docker push 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/frontend:latest artifacts: files: - appspec.yml diff --git a/scripts/deploy.sh b/scripts/deploy.sh index d6b3c7d1..df124583 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -27,7 +27,7 @@ APPLE_KEY_ID=$(aws secretsmanager get-secret-value --secret-id about/frontend -- APPLE_PRIVATE_KEY=$(aws secretsmanager get-secret-value --secret-id about/frontend --query SecretString --output text | jq -r '.APPLE_PRIVATE_KEY') APPLE_TEAM_ID=$(aws secretsmanager get-secret-value --secret-id about/frontend --query SecretString --output text | jq -r '.APPLE_TEAM_ID') -docker pull 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/about/front:latest +docker pull 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/frontend:latest docker stop next-app || true docker rm next-app || true docker run -d \ @@ -56,4 +56,4 @@ docker run -d \ -e APPLE_KEY_ID=$APPLE_KEY_ID \ -e APPLE_PRIVATE_KEY=$APPLE_PRIVATE_KEY \ -e APPLE_TEAM_ID=$APPLE_TEAM_ID \ - --name next-app -p 3000:3000 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/about/front:latest \ No newline at end of file + --name next-app -p 3000:3000 294951093594.dkr.ecr.ap-northeast-2.amazonaws.com/frontend:latest \ No newline at end of file