machine:
  services:
    - docker

general:
  artifacts:
    - "pkg"

dependencies:
  pre:
    - mkdir -p ~/pkg
    - mkdir -p ~/cache
  cache_directories:
    - "~/cache"
  post:
    - docker run -e AGENT_BRANCH=$AGENT_BRANCH -e AGENT_VERSION=$AGENT_VERSION -v ~/pkg:/dd-agent-omnibus/pkg -v ~/cache:/var/cache/omnibus datadog/docker-dd-agent-build-rpm-x64


test:
  override:
    - mkdir -p pkg
    - cp ~/pkg/* pkg/

machine:
  services:
    - docker

general:
  artifacts:
    - "pkg"

dependencies:
  pre:
    - mkdir -p ~/pkg
    - mkdir -p ~/cache
  cache_directories:
    - "~/cache"
  post:
    - docker run -e OMNIBUS_BRANCH=$OMNIBUS_BRANCH -e AGENT_BRANCH=$AGENT_BRANCH -e AGENT_VERSION=$AGENT_VERSION -v ~/pkg:/dd-agent-omnibus/pkg -v ~/cache:/var/cache/omnibus datadog/docker-dd-agent-build-rpm-x64


test:
  override:
    - mkdir -p pkg
    - cp ~/pkg/* pkg/

Allow to pass the omnibus branch to use
Allow to pass the omnibus branch to use
