Commit 1a563c71 authored by protolambda's avatar protolambda

ci: skip second docker build in devnet branch of workflow

parent 284f3a4c
......@@ -1031,6 +1031,7 @@ jobs:
image: ubuntu-2204:2022.10.2
environment:
DOCKER_BUILDKIT: 1
DEVNET_NO_BUILD: 'true'
steps:
- checkout
- check-changed:
......
......@@ -97,6 +97,10 @@ def main():
git_commit = subprocess.run(['git', 'rev-parse', 'HEAD'], capture_output=True, text=True).stdout.strip()
git_date = subprocess.run(['git', 'show', '-s', "--format=%ct"], capture_output=True, text=True).stdout.strip()
# CI loads the images from workspace, and does not otherwise know the images are good as-is
if os.getenv('DEVNET_NO_BUILD') == "true":
log.info('Skipping docker images build')
else:
log.info(f'Building docker images for git commit {git_commit} ({git_date})')
run_command(['docker', 'compose', 'build', '--progress', 'plain',
'--build-arg', f'GIT_COMMIT={git_commit}', '--build-arg', f'GIT_DATE={git_date}'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment