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 8973275 commit 2ca6bef
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +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
id: netbird
uses: Alemiz112/netbird-connect@v1
with:
setup-key: ${{ secrets.NETBIRD_SETUP_KEY }}
management-url: 'https://api.netbird.io'

- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASSWORD }}
script: |
cd URA-project
cd ura
git fetch
git pull
docker compose down
Expand Down

0 comments on commit 2ca6bef

Please sign in to comment.