Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
iljavaleev committed Jun 16, 2024
1 parent f7aeaf4 commit e89b243
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Copy infra files to server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.SSH_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
source: "cppinfra/docker-compose.yml"
target: ${{ secrets.DEPLOY_PATH }}
overwrite: true
strip_components: 1

- name: executing remote ssh commands to deploy
uses: appleboy/ssh-action@master
Expand All @@ -51,7 +40,6 @@ jobs:
key: ${{ secrets.SSH_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
script: |
touch .env
cd ${{ secrets.DEPLOY_PATH }}
echo "BOT_TOKEN=${{ secrets.BOT_TOKEN }}" > .env
echo POSTGRES_USER=${{ secrets.POSTGRES_USER }} >> .env
Expand All @@ -68,7 +56,7 @@ jobs:
sudo docker compose up -d --build
sudo docker system prune -af

send_message:
runs-on: ubuntu-latest
needs: deploy
Expand Down

0 comments on commit e89b243

Please sign in to comment.