Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chouquette committed Nov 7, 2023
1 parent edc44a9 commit 6b2d63e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tasks/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,18 @@ def bundle_install_omnibus(ctx, gem_path=None, env=None):
ctx.run(cmd, env=env)


def _get_build_images(ctx):
tags = ctx.run("grep -E 'DATADOG_AGENT_.*BUILDIMAGES:' .gitlab-ci.yml | cut -d ':' -f 2").stdout
return map(lambda t: t.strip(), tags.splitlines())


def _omnibus_compute_cache_key(ctx):
omnibus_last_commit = ctx.run('git log -n 1 --pretty=format:%H omnibus/').stdout
buildimages_hash = _get_build_images(ctx)

pass


# hardened-runtime needs to be set to False to build on MacOS < 10.13.6, as the -o runtime option is not supported.
@task(
help={
Expand Down

0 comments on commit 6b2d63e

Please sign in to comment.