diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index df78fe5..1075a96 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,17 +31,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4.1.1 - - 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 @@ -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 @@ -68,7 +56,7 @@ jobs: sudo docker compose up -d --build sudo docker system prune -af - + send_message: runs-on: ubuntu-latest needs: deploy