-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73a27e0
commit a9c34d5
Showing
1 changed file
with
9 additions
and
5 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 |
---|---|---|
|
@@ -61,13 +61,17 @@ jobs: | |
- name: Deploy to Instance | ||
uses: appleboy/[email protected] #가장 최신 버젼 appleboy 사용 | ||
with: | ||
host: ${{secrets.GCP_HOST}} | ||
username: ${{secrets.GCP_USERNAME}} | ||
key: ${{secrets.GCP_PRIVATEKEY}} | ||
host: ${{ secrets.GCP_HOST }} | ||
username: ${{ secrets.GCP_USERNAME }} | ||
key: ${{ secrets.GCP_PRIVATE_KEY }} | ||
passphrase : ${{ secrets.GCP_KEY_PASSPHRASE }} | ||
script: | | ||
sudo su | ||
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | ||
docker pull ${{secrets.DOCKER_USERNAME}}/petwalk | ||
docker run --name petwalk-backend -d -p 8080:8080 helloaway/petwalk | ||
if [ $(docker ps -q -f name=petwalk-backend) ]; then | ||
docker stop petwalk-backend | ||
docker rm petwalk-backend | ||
fi | ||
docker pull ${{ secrets.DOCKER_USERNAME }}/petwalk | ||
docker run --name petwalk-backend -d -p 8080:8080 ${{ secrets.DOCKER_USERNAME }}/petwalk | ||
docker image prune -f |