Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
seungueonn authored Apr 11, 2024
1 parent a459fd1 commit d4a3d9a
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,24 @@
docker tag app ${{ secrets.DOCKER_USERNAME }}/member:latest
docker push ${{ secrets.DOCKER_USERNAME }}/member:latest
- name: docker-compose.yml
uses: appleboy/scp-action@master
with:
username: ec2-user
host: ${{ secrets.HOST }}
key: ${{ secrets.PRIVATE_KEY }}
port: ${{ secrets.PORT }}
source: "./docker-compose-member.yml"
target: "/home/ec2-user/"
# - name: docker-compose.yml
# uses: appleboy/scp-action@master
# with:
# username: ec2-user
# host: ${{ secrets.HOST }}
# key: ${{ secrets.PRIVATE_KEY }}
# port: ${{ secrets.PORT }}
# source: "./docker-compose-member.yml"
# target: "/home/ec2-user/"


- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ec2-user
key: ${{ secrets.PRIVATE_KEY }}
script: |
docker pull ${{ secrets.DOCKER_USERNAME }}/member:latest
docker image prune -a -f
docker-compose up -d
# - name: Deploy
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.HOST }}
# username: ec2-user
# key: ${{ secrets.PRIVATE_KEY }}
# script: |
# docker pull ${{ secrets.DOCKER_USERNAME }}/member:latest
# docker image prune -a -f
# docker-compose up -d

0 comments on commit d4a3d9a

Please sign in to comment.