Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eojinny authored May 14, 2024
1 parent 2780601 commit c8d8486
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,25 @@ jobs:
docker tag app ${{ secrets.DOCKER_USERNAME }}/apigateway:latest
docker push ${{ secrets.DOCKER_USERNAME }}/apigateway: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-gateway.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-gateway.yml"
target: "/home/ec2-user"

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

0 comments on commit c8d8486

Please sign in to comment.