machine:
  services:
    - docker

general:
  branches:
    ignore:
      - /^(?!etienne).*/
  artifacts:
    - "pkg"

dependencies:
  pre:
    - mkdir -p ~/pkg ~/cache ~/keys
    - echo -e $RPM_GPG_KEY > /home/ubuntu/keys/RPM-SIGNING-KEY.private
  cache_directories:
    - "~/cache"
  post:
    - docker run -e RPM_SIGNING_PASSPHRASE=$RPM_SIGNING_PASSPHRASE -e OMNIBUS_BRANCH=$OMNIBUS_BRANCH -e AGENT_BRANCH=$AGENT_BRANCH -e AGENT_VERSION=$AGENT_VERSION -v /home/ubuntu/keys:/keys -v /home/ubuntu/pkg:/dd-agent-omnibus/pkg -v /home/ubuntu/cache:/var/cache/omnibus datadog/docker-dd-agent-build-rpm-x64:omnibusfour


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

machine:
  services:
    - docker

general:
  branches:
    ignore:
      - /^(?!etienne).*/
  artifacts:
    - "pkg"

dependencies:
  pre:
    - mkdir -p ~/pkg ~/cache ~/keys
    - echo -e $RPM_GPG_KEY > /home/ubuntu/keys/RPM-SIGNING-KEY.private
  cache_directories:
    - "~/cache"
  post:
    - docker run -e RPM_SIGNING_PASSPHRASE=$RPM_SIGNING_PASSPHRASE -e OMNIBUS_BRANCH=$OMNIBUS_BRANCH -e AGENT_BRANCH=$AGENT_BRANCH -e AGENT_VERSION=$AGENT_VERSION -v /home/ubuntu/keys:/keys -v /home/ubuntu/pkg:/dd-agent-omnibus/pkg -v /home/ubuntu/cache:/var/cache/omnibus datadog/docker-dd-agent-build-rpm-x64


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

Use latest label for docker image
Use latest label for docker image
