ci fix trial 1

This commit is contained in:
Loup-Garou911XD 2024-05-19 16:29:13 +05:30
parent 93e452d346
commit c794e63091
2 changed files with 6 additions and 9 deletions

View File

@ -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

View File

@ -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,
)