From 8102e08b07c6dc40525bd9f1d2c7aa68fbdfea0a Mon Sep 17 00:00:00 2001 From: SlavaVlad Date: Mon, 8 Jun 2026 18:39:26 +0300 Subject: [PATCH] CI: combine build and deploy into single job --- .gitea/workflows/deploy.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 9db04c4..7bc9707 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -14,20 +14,15 @@ jobs: - name: Build Docker image run: docker build -t barotrauma-server:${{ github.sha }} . - deploy: - if: github.ref_name == 'release' - runs-on: [ ubuntu-22.04 ] - needs: build - steps: - - uses: actions/checkout@v4 - - name: Tag and push to local registry + if: github.ref_name == 'release' run: | docker tag barotrauma-server:${{ github.sha }} \ ${{ secrets.REGISTRY_ADDR }}/barotrauma-server:latest docker push ${{ secrets.REGISTRY_ADDR }}/barotrauma-server:latest - name: Deploy via SSH + if: github.ref_name == 'release' uses: appleboy/ssh-action@v1 with: host: ${{ secrets.SERVER_HOST }}