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 275031f commit 3a7f68f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion aws/appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ files:
- source: /
destination: /home/ec2-user
overwrite: yes
permission:
permissions:
- object: /home/ec2-user
pattern: "**"
owner: ec2-user
Expand Down
15 changes: 7 additions & 8 deletions aws/start_process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ 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_REPOSITORY};

export IMAGE=${ECR_REPOSITORY};
export TAG=${ECR_DOCKER_TAG};
sudo docker pull ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}
sudo docker run -d --name dc -p 8080:8080 ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}
sudo docker image prune -f
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 run -d --name dc -p 8080:8080 ${ECR_REGISTRY}/${ECR_REPOSITORY}:${ECR_DOCKER_TAG}

sudo docker image prune -f

0 comments on commit 3a7f68f

Please sign in to comment.