-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from twenty-three-23/feature/TT-208-ci-cd
fix: cicd
- Loading branch information
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,19 +75,19 @@ jobs: | |
needs: build-docker-image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
|
||
# 개발 서버 ec2 ssh 접속 | ||
- name: excute ec2 ssh | ||
uses: appleboy/[email protected] | ||
with: | ||
key : ${{ secrets.DEV_EC2_KEY }} | ||
host: ${{ secrets.DEV_EC2_IP }} | ||
username: ${{ secrets.DEV_EC2_ID }} | ||
port: ${{ secrets.DEV_EC2_PORT }} | ||
script: | | ||
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/github-actions-demo | ||
sudo docker stop $(sudo docker ps -q) 2>/dev/null || true | ||
sudo docker run --name github-actions-demo --rm -d -p 8080:8080 ${{ secrets.DOCKERHUB_USERNAME }}/github-actions-demo | ||
sudo docker system prune -f | ||
# 개발 서버 ec2 ssh 접속 | ||
- name: excute ec2 ssh | ||
uses: appleboy/[email protected] | ||
with: | ||
key : ${{ secrets.DEV_EC2_KEY }} | ||
host: ${{ secrets.DEV_EC2_IP }} | ||
username: ${{ secrets.DEV_EC2_ID }} | ||
port: ${{ secrets.DEV_EC2_PORT }} | ||
script: | | ||
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/github-actions-demo | ||
sudo docker stop $(sudo docker ps -q) 2>/dev/null || true | ||
sudo docker run --name github-actions-demo --rm -d -p 8080:8080 ${{ secrets.DOCKERHUB_USERNAME }}/github-actions-demo | ||
sudo docker system prune -f | ||