Skip to content

Commit

Permalink
update cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
teleportx committed Jul 26, 2024
1 parent 272baac commit 8973275
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy to server

on:
push:
branches: [ main ]
branches: [ dev ]

jobs:
build:
Expand All @@ -12,11 +12,21 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v2

- name: Netbird Install
run: |
curl -fsSL https://pkgs.netbird.io/install.sh | sh
- name: Netbird Connect
run: |
sudo netbird up --setup-key=${{ secrets.NETBIRD_SETUP_KEY }} --management-url=https://api.netbird.io:443
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASSWORD }}
script: |
sh urabot_deploy.sh
cd URA-project
git fetch
git pull
docker compose down
docker compose up -d --build

0 comments on commit 8973275

Please sign in to comment.