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
|
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 }} \
|
||||||
|
|||||||
Reference in New Issue
Block a user