diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml index be8ea02..cfacd84 100644 --- a/.github/workflows/build-docker-images.yml +++ b/.github/workflows/build-docker-images.yml @@ -48,7 +48,7 @@ jobs: ghcr.io/${{ github.repository_owner }}/blog-ahmza-com:${{ github.event.head_commit.id }} cache-from: type=gha cache-to: type=gha,mode=max - deployment: + deploy-to-rpic: runs-on: ubuntu-latest needs: build @@ -60,7 +60,7 @@ jobs: hostname: 'blog-gh-actions' management-url: ${{ secrets.NETBIRD_URL }} - - name: Deploy to RPIC Cluster + - name: Deploy to Cluster uses: appleboy/ssh-action@v1 with: host: ${{ secrets.SSH_HOST }} @@ -69,6 +69,18 @@ jobs: port: ${{ secrets.SSH_PORT }} script: 'kubectl rollout restart deployment blog -n blog-ahmza-com' + deploy-to-gimli-blog: + runs-on: ubuntu-latest + needs: build + + steps: + - name: Netbird Connect + uses: Alemiz112/netbird-connect@v1 + with: + setup-key: ${{ secrets.NETBIRD_SETUP_KEY }} + hostname: 'blog-gh-actions' + management-url: ${{ secrets.NETBIRD_URL }} + - name: Deploy to gimli-blog uses: appleboy/ssh-action@v1 with: