Merge pull request 'update ci' (#2) from main into release
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
@@ -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 }} \
|
||||
|
||||
Reference in New Issue
Block a user