mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-19 21:37:57 +08:00
ci fix trial 1
This commit is contained in:
parent
93e452d346
commit
c794e63091
2
.github/workflows/cd.yml
vendored
2
.github/workflows/cd.yml
vendored
@ -213,7 +213,7 @@ jobs:
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- name: Setup build dependencies
|
||||
run: apt install cmake
|
||||
run: sudo apt-get install -y cmake
|
||||
- name: Setup project environment
|
||||
run: make env
|
||||
- name: Make the build
|
||||
|
||||
@ -662,7 +662,7 @@ def _docker_build(
|
||||
image_name,
|
||||
'-f',
|
||||
dockerfile_dir,
|
||||
'.'
|
||||
'.',
|
||||
]
|
||||
if bombsquad_version is not None:
|
||||
build_cmd = build_cmd + [
|
||||
@ -684,22 +684,19 @@ def _docker_build(
|
||||
|
||||
def docker_build() -> None:
|
||||
"""Build docker image."""
|
||||
import shutil
|
||||
|
||||
# todo: add option to toggle between prefab and cmake
|
||||
from batools import version
|
||||
|
||||
version_num, build_num = version.get_current_version()
|
||||
image_name = 'bombsquad_server'
|
||||
|
||||
|
||||
print(
|
||||
f'Building docker image {image_name}' +
|
||||
'version {version_num}:{build_num}'
|
||||
f'Building docker image {image_name}'
|
||||
+ 'version {version_num}:{build_num}'
|
||||
)
|
||||
_docker_build(
|
||||
image_name,
|
||||
os.getcwd()+'/config/docker/Dockerfile',
|
||||
os.getcwd() + '/config/docker/Dockerfile',
|
||||
version_num,
|
||||
build_num,
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user