Skip to content

Commit

Permalink
quick save
Browse files Browse the repository at this point in the history
  • Loading branch information
drveles committed Jun 8, 2024
1 parent a46c1ea commit 0460c47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}

- name: Copy files to server
run: rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./ ${{ secrets.DEPLOY_SERVER_USER }}@${{ secrets.DEPLOY_HOST_SERVER }}:/deploy_campus_bot
run: rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./ ${{ vars.DEPLOY_SERVER_USER }}@${{ vars.DEPLOY_HOST_SERVER }}://home/${{ secrets.DEPLOY_SERVER_USER }}/deploy_campus_bot

- name: Run Docker Compose
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.DEPLOY_SERVER_USER }}@${{ secrets.DEPLOY_HOST_SERVER }} << 'EOF'
ssh -o StrictHostKeyChecking=no ${{ vars.DEPLOY_SERVER_USER }}@${{ vars.DEPLOY_HOST_SERVER }} << 'EOF'
cd /deploy_campus_bot
docker-compose down
docker-compose up -d --build
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/deploy3.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: Deploy
name: Deploy to Server 3

on:
push:
branches:
- develop
- all-testing

env:
SERVER_HOST: ${{ secrets.DEPLOY_HOST_SERVER }}

jobs:

deploy:
Expand All @@ -28,4 +25,4 @@ jobs:
run: ssh-keyscan -H ${{ vars.DEPLOY_HOST_SERVER }} >> ~/.ssh/known_hosts

# Deploy
- run: rsync --archive --compress --progress . ${{ secrets.DEPLOY_SERVER_USER }}@${{ secrets.DEPLOY_HOST_SERVER }}://home/${{ secrets.DEPLOY_SERVER_USER }}/deploy_campus_bot
- run: rsync --archive --compress --progress . ${{ vars.DEPLOY_SERVER_USER }}@${{ vars.DEPLOY_HOST_SERVER }}://home/${{ secrets.DEPLOY_SERVER_USER }}/deploy_campus_bot

0 comments on commit 0460c47

Please sign in to comment.