Skip to content

Commit

Permalink
test deploy to production18
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegGsk committed Sep 25, 2024
1 parent b33a2f1 commit 520d38a
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/production_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +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
# 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: 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
- 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 520d38a

Please sign in to comment.