From 0edbaa8ac4507a71c49ab75d3538c6b771b717aa Mon Sep 17 00:00:00 2001 From: SlavaVlad Date: Mon, 8 Jun 2026 18:12:37 +0300 Subject: [PATCH] update ci --- .gitea/workflows/deploy.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8f84d20..9db04c4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,10 +1,12 @@ name: Build & Deploy on: push: - branches: [release] + branches: + - main + - release jobs: - deploy: + build: runs-on: [ ubuntu-22.04 ] steps: - uses: actions/checkout@v4 @@ -12,6 +14,13 @@ 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 run: | docker tag barotrauma-server:${{ github.sha }} \ -- 2.49.1