Skip to content

Commit

Permalink
Update prod-apigateway-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eojinny authored Feb 21, 2024
1 parent e8eb5e6 commit be50eb6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/prod-apigateway-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ jobs:
docker build -t app .
docker tag app ${{ secrets.DOCKER_USERNAME }}/apigateway:latest
docker push ${{ secrets.DOCKER_USERNAME }}/apigateway:latest
- name: Stop and Remove existing Docker containers
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_PROD_1 }}
username: ec2-user
key: ${{ secrets.PRIVATE_KEY_1 }}
script: |
cd ./BE-APIGateway-Server
docker-compose -f docker-compose-gateway.yml down
- name: docker-compose.yml
uses: appleboy/scp-action@master
Expand Down

0 comments on commit be50eb6

Please sign in to comment.