Skip to content

Commit

Permalink
test deploy to production7
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegGsk committed Sep 25, 2024
1 parent 1930378 commit 930453a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-and-push-github-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- master
- dev
- feature/convert_ci-cd_to_the_prod

env:
REGISTRY: ghcr.io
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/production_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,17 @@ jobs:
run: |
mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keyscan -H ${{ secrets.HOST }} > ~/.ssh/known_hosts
ssh-keyscan -H ${{ secrets.HOST }} > ~/.ssh/authorized_keys
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 prodiction/${{ env.DEPLOY_PATH }}/infra
run: ssh -vvv ${{ secrets.USERNAME }}@${{ secrets.HOST }} mkdir -p ${{ env.DEPLOY_PATH }}/infra

- name: Copy dev folder to VPS
run: |
# scp -r $GITHUB_WORKSPACE/infra/prod/ ${{ secrets.USERNAME }}@${{ secrets.HOST }}:prodiction/${{ env.DEPLOY_PATH }}/infra/
# scp -r $GITHUB_WORKSPACE/infra/nginx/ ${{ secrets.USERNAME }}@${{ secrets.HOST }}:prodiction/${{ env.DEPLOY_PATH }}/infra/
# scp -r $GITHUB_WORKSPACE/infra/prod/ ${{ secrets.USERNAME }}@${{ secrets.HOST }}:${{ env.DEPLOY_PATH }}/infra/
# scp -r $GITHUB_WORKSPACE/infra/nginx/ ${{ secrets.USERNAME }}@${{ secrets.HOST }}:${{ env.DEPLOY_PATH }}/infra/
- name: Execute commands on VPS
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit 930453a

Please sign in to comment.