Skip to content

Commit

Permalink
test deploy to production20
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegGsk committed Sep 25, 2024
1 parent d6022d4 commit b4d5f66
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/production_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,20 +113,20 @@ jobs:
chmod 644 ~/.ssh/known_hosts
echo ${{ secrets.TEST_RSA_SECRET_KEY }} > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
# - name: Create folder for deploy
- name: Create folder for deploy
# # run: ssh -vvv ${{ secrets.USERNAME }}@${{ secrets.HOST }} mkdir -p ${{ env.DEPLOY_PATH }}/infra
# run: ssh -vvv [email protected] mkdir -p ${{ env.DEPLOY_PATH }}/infra
- name: Copy docker-compose.yml via ssh
uses: appleboy/scp-action@master
with:
host: jetrai.online
username: production
key: ${{ secrets.TEST_RSA_SECRET_KEY }}
# passphrase: ${{ secrets.SSH_PASSPHRASE }}
source: "infra/"
target: ${{ env.DEPLOY_PATH }}
overwrite: true
strip_components: 1
run: ssh -vvv [email protected] mkdir -p ${{ env.DEPLOY_PATH }}/infra
# - name: Copy docker-compose.yml via ssh
# uses: appleboy/scp-action@master
# with:
# host: jetrai.online
# username: production
# key: ${{ secrets.TEST_RSA_SECRET_KEY }}
# # passphrase: ${{ secrets.SSH_PASSPHRASE }}
# source: "infra/"
# target: ${{ env.DEPLOY_PATH }}
# overwrite: true
# strip_components: 1
- name: Copy dev folder to VPS
run: |
scp -r $GITHUB_WORKSPACE/infra/prod/ ${{ secrets.USERNAME }}@${{ secrets.HOST }}:${{ env.DEPLOY_PATH }}/infra/
Expand Down

0 comments on commit b4d5f66

Please sign in to comment.