You've already forked hotpocket
BTHLABS-66: Prepping for public release: Take one
This commit is contained in:
8
tasks.py
8
tasks.py
@@ -87,7 +87,7 @@ def _get_version(ctx: Context, service):
|
||||
return run_result.stdout.strip()
|
||||
|
||||
|
||||
def _get_head_sha(ctx):
|
||||
def _get_head_sha(ctx: Context):
|
||||
run_result = ctx.run('git rev-parse HEAD', hide='out')
|
||||
return run_result.stdout.strip()
|
||||
|
||||
@@ -182,6 +182,8 @@ def build(ctx: Context,
|
||||
f'-t {registry}/hotpocket/{service}:{docker_build_ctx.tag}', # noqa: E501
|
||||
f'-f services/{service}/Dockerfile',
|
||||
f'--build-arg IMAGE_ID={image_tag}',
|
||||
f'--build-arg IMAGE_VERSION={version}',
|
||||
f'--build-arg IMAGE_REVISION={short_sha}',
|
||||
f'--target {docker_build_ctx.target}',
|
||||
'services/',
|
||||
]
|
||||
@@ -244,11 +246,11 @@ def install(ctx: Context, service=None):
|
||||
|
||||
@task
|
||||
def lock(ctx: Context, service):
|
||||
_run_in_service(ctx, service, 'poetry lock --no-update')
|
||||
_run_in_service(ctx, service, 'poetry lock')
|
||||
|
||||
|
||||
@task
|
||||
def start_cloud(ctx):
|
||||
def start_cloud(ctx: Context):
|
||||
ctx.run('docker compose -f docker-compose-cloud.yaml up')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user