From b3db7d2b6a0af282cc79383aef40b1123e44d583 Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Thu, 19 Feb 2026 23:48:53 +0200 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20reconnecting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/build.yaml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .gitea/build.yaml diff --git a/.gitea/build.yaml b/.gitea/build.yaml new file mode 100644 index 0000000..b30eede --- /dev/null +++ b/.gitea/build.yaml @@ -0,0 +1,47 @@ +name: Build rosetta-wss +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: [linux, ubuntu, macos] + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + cache: maven + + - name: Build with Maven + run: mvn clean package + + - name: Deploy to server via SSH + uses: appleboy/ssh-action@v1.2.5 + with: + host: ${{ secrets.WSS_SSH_HOST }} + username: ${{ secrets.WSS_SSH_USER }} + password: ${{ secrets.WSS_SSH_PASSWORD }} + port: ${{ secrets.WSS_SSH_PORT }} + source: "build/*" + target: ${{ secrets.WSS_DEPLOY_PATH }} + strip_components: 1 + + - name: Restart Docker containers + uses: appleboy/ssh-action@v1.2.5 + with: + host: ${{ secrets.WSS_SSH_HOST }} + username: ${{ secrets.WSS_SSH_USER }} + password: ${{ secrets.WSS_SSH_PASSWORD }} + port: ${{ secrets.WSS_SSH_PORT }} + script: | + cd ${{ secrets.WSS_DEPLOY_PATH }} + docker-compose down + docker compose up -d --build + \ No newline at end of file