Skip to content

Commit

Permalink
chore: nginx.conf 파일 복사 여러 명령어를 한 번에 실행할 때는 하나의 script 블록으로 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogu1208 committed Sep 5, 2024
1 parent 30e09d0 commit efa02c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/dev-aws-CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ jobs:
key: ${{ secrets.AWS_DEV_PRIVATE_KEY }}
script: |
sudo mkdir -p /etc/nginx/conf.d/
sudo mv /home/ubuntu/nginx.conf /etc/nginx/conf.d/nginx.conf
if [ -f /home/ubuntu/nginx.conf ]; then
sudo mv /home/ubuntu/nginx.conf /etc/nginx/conf.d/nginx.conf
else
echo "nginx.conf not found in /home/ubuntu/"
exit 1
fi
## Docker login
- name: Docker Login
Expand Down

0 comments on commit efa02c6

Please sign in to comment.