Skip to content

Commit

Permalink
chore: touched deploy.sh in deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Seokyeong237 committed Jan 19, 2024
1 parent a6a90ac commit 0f5025d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ jobs:
run: |
docker buildx build --platform=linux/amd64 -t $ECR_REGISTRY/$ECR_REPOSITORY .
docker push $ECR_REGISTRY/$ECR_REPOSITORY
mkdir scripts
touch scripts/deploy.sh
echo "aws ecr get-login --region ap-northeast-2 --no-include-email" >> scripts/deploy.sh
echo "docker rm -f codedeploy" >> scripts/deploy.sh
echo "docker rmi $ECR_REPOSITORY" >> scripts/deploy.sh
echo "docker pull $ECR_REPOSITORY" >> scripts/deploy.sh
echo "docker run -d --name codedeploy -p 8080:80 --restart always "$ECR_REPOSITORY" >> scripts/deploy.sh
# S3에 업로드
- name: Upload to s3
Expand Down
6 changes: 0 additions & 6 deletions scripts/deploy.sh

This file was deleted.

0 comments on commit 0f5025d

Please sign in to comment.