From 8973275e1f4d47067461688e62117732054cf922 Mon Sep 17 00:00:00 2001 From: Stepan Khozhempo Date: Fri, 26 Jul 2024 15:49:53 +0300 Subject: [PATCH] update cicd --- .github/workflows/deploy.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9573ae3..57c3da0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Deploy to server on: push: - branches: [ main ] + branches: [ dev ] jobs: build: @@ -12,6 +12,12 @@ 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: @@ -19,4 +25,8 @@ jobs: username: ${{ secrets.SSH_USER }} password: ${{ secrets.SSH_PASSWORD }} script: | - sh urabot_deploy.sh \ No newline at end of file + cd URA-project + git fetch + git pull + docker compose down + docker compose up -d --build \ No newline at end of file