diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 50ec703..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: CD - -on: - push: - branches: - - main - -concurrency: - group: deploy-${{ github.ref }} - cancel-in-progress: true - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: Connect to tailscale - uses: tailscale/github-action@v2 - with: - authkey: ${{ secrets.TAILSCALE_AUTHKEY }} - - - name: Deploy to server - uses: appleboy/ssh-action@v1.0.0 - with: - host: ${{ secrets.SSH_HOST }} - username: ${{ secrets.SSH_USER }} - key: ${{ secrets.SSH_DEPLOY_PRIVATE_KEY }} - script: | - set -e - cd ~/SteelTime - git fetch origin main - git reset --hard origin/main - docker compose up -d --build - docker system prune -f