Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MinsFuture authored Jun 11, 2024
1 parent 3934d96 commit 4c702e1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,16 @@ jobs:
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -t ${{ secrets.DOCKER_USERNAME }}/petwalk .
docker push ${{ secrets.DOCKER_USERNAME }}/petwalk
- name: Deploy to Instance
uses: appleboy/[email protected] #가장 최신 버젼 appleboy 사용
with:
host: ${{secrets.GCP_HOST}}
username: ${{secrets.GCP_USERNAME}}
key: ${{secrets.GCP_PRIVATEKEY}}
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
docker image prune -f

0 comments on commit 4c702e1

Please sign in to comment.