Skip to content

Commit

Permalink
update github-action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dangnak2 committed Sep 17, 2023
1 parent 009d387 commit 4ea15a3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/github-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,14 @@ jobs:
id: deploy-prod
if: contains(github.ref, 'main')
with:
host: ${{ secrets.HOST_PROD }}
username: ec2-user
key: ${{ secrets.PRIVATE_KEY }}
envs: GITHUB_SHA
# host: ${{ secrets.HOST_PROD }}
# username: ec2-user
# key: ${{ secrets.PRIVATE_KEY }}
# envs: GITHUB_SHA
host: ${{ secrets.HOST_DEV }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: 22
script: |
sudo docker rm -f $(docker ps -qa)
sudo docker pull ${{ secrets.DOCKER_REPO }}/pladi-prod
Expand Down

0 comments on commit 4ea15a3

Please sign in to comment.