From 6aa81a712b6d3138229e7b886583e3879ed94b1d Mon Sep 17 00:00:00 2001 From: Luna Date: Thu, 2 Nov 2023 13:23:39 -0400 Subject: [PATCH] delete deploy script unnecesary --- .github/workflows/deploy.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 54490a0..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Deploy -on: - push: - branches: - - main - workflow_dispatch: - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: Configure SSH - run: | - mkdir -p ~/.ssh/ - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -t rsa $SERVER_IP >> ~/.ssh/known_hosts - env: - SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} - SERVER_IP: ${{ secrets.SERVER_IP }} - - - name: Deploy - run: | - ssh -i ~/.ssh/id_rsa $SSH_USER@$SERVER_IP "cd $DEPLOY_PATH && git pull origin main && docker compose -f $COMPOSE_FILE up -d --build --wait converter && docker compose -f $COMPOSE_FILE up -d --build --wait" - env: - SERVER_IP: ${{ secrets.SERVER_IP }} - DEPLOY_PATH: ${{ secrets.DEPLOY_PATH }} - COMPOSE_FILE: ${{ secrets.COMPOSE_FILE }} - SSH_USER: ${{ secrets.SSH_USER }}