Merge pull request 'update ci' (#2) from main into release
Some checks failed
Build & Deploy / build (push) Successful in 2m17s
Build & Deploy / deploy (push) Failing after 1m17s

Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2026-06-08 15:34:37 +00:00

View File

@@ -1,10 +1,12 @@
name: Build & Deploy name: Build & Deploy
on: on:
push: push:
branches: [release] branches:
- main
- release
jobs: jobs:
deploy: build:
runs-on: [ ubuntu-22.04 ] runs-on: [ ubuntu-22.04 ]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -12,6 +14,13 @@ jobs:
- name: Build Docker image - name: Build Docker image
run: docker build -t barotrauma-server:${{ github.sha }} . 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 - name: Tag and push to local registry
run: | run: |
docker tag barotrauma-server:${{ github.sha }} \ docker tag barotrauma-server:${{ github.sha }} \