Skip to content

Commit

Permalink
feature: cicd test
Browse files Browse the repository at this point in the history
  • Loading branch information
mushroom1324 committed Aug 29, 2024
1 parent 953ee9f commit 25ead14
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions aws/start_process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

set -e

ECR_REPOSITORY="654654448479.dkr.ecr.ap-northeast-2.amazonaws.com/repick-repo"
ECR_REPOSITORY="repick-repo"
ECR_DOCKER_TAG="latest"
ECR_REPOSITORY=654654448479.dkr.ecr.ap-northeast-2.amazonaws.com/repick-repo
ECR_REPOSITORY=repick-repo
ECR_DOCKER_TAG=latest

aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin ${ECR_REGISTRY}
aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin $ECR_REGISTRY

sudo docker pull ${ECR_REGISTRY}/${ECR_REPOSITORY}:${ECR_DOCKER_TAG}
sudo docker pull $ECR_REGISTRY/$ECR_REPOSITORY:$ECR_DOCKER_TAG

sudo docker run -d --name dc -p 8080:8080 ${ECR_REGISTRY}/${ECR_REPOSITORY}:${ECR_DOCKER_TAG}
sudo docker run -d --name dc -p 8080:8080 $ECR_REGISTRY/$ECR_REPOSITORY:$ECR_DOCKER_TAG

sudo docker image prune -f

0 comments on commit 25ead14

Please sign in to comment.