anchor.diff:  WORKDIR /work
   RUN ./pkg/rpm/build.sh
   
  -FROM opensuse/leap:15.1 as sles15
  +FROM opensuse/leap:15.1 AS sles15-build
   
   RUN set -x; zypper -n install git systemd autoconf automake flex libtool libcurl-devel libopenssl-devel libyajl-devel gcc gcc-c++ zlib-devel rpm-build expect cmake systemd-devel systemd-rpm-macros java-1_8_0-openjdk-devel \
   # Add home:ptrommler:formal repo to install >3.4 bison
  
positive.code: WORKDIR /work
  RUN ./pkg/deb/build.sh
  
  FROM centos:7 AS centos7
  
  RUN set -x; yum -y update && \
      yum -y install git systemd \
  
negative.code: WORKDIR /work
  RUN ./pkg/rpm/build.sh
  
  FROM scratch AS buster
  COPY --from=buster-build /tmp/google-cloud-ops-agent.tgz /google-cloud-ops-agent-debian-buster.tgz
  COPY --from=buster-build /google-cloud-ops-agent*.deb /
  
  FROM scratch AS stretch
  COPY --from=stretch-build /tmp/google-cloud-ops-agent.tgz /google-cloud-ops-agent-debian-stretch.tgz
  COPY --from=stretch-build /google-cloud-ops-agent*.deb /
  
  FROM scratch AS hirsute
  COPY --from=hirsute-build /tmp/google-cloud-ops-agent.tgz /google-cloud-ops-agent-ubuntu-hirsute.tgz
  COPY --from=hirsute-build /google-cloud-ops-agent*.deb /
  
  FROM scratch AS focal
  COPY --from=focal-build /tmp/google-cloud-ops-agent.tgz /google-cloud-ops-agent-ubuntu-focal.tgz
  COPY --from=focal-build /google-cloud-ops-agent*.deb /
  
  FROM scratch AS bionic
  COPY --from=bionic-build /tmp/google-cloud-ops-agent.tgz /google-cloud-ops-agent-ubuntu-bionic.tgz
  COPY --from=bionic-build /google-cloud-ops-agent*.deb /
  
  FROM scratch AS xenial
  COPY --from=xenial-build /tmp/google-cloud-ops-agent.tgz /google-cloud-ops-agent-ubuntu-xenial.tgz
  COPY --from=xenial-build /google-cloud-ops-agent*.deb /
  
  FROM scratch AS centos7
  COPY --from=centos7-build /tmp/google-cloud-ops-agent.tgz /google-cloud-ops-agent-centos-7.tgz
  COPY --from=centos7-build /google-cloud-ops-agent*.rpm /
  
  FROM scratch AS centos8
  COPY --from=centos8-build /tmp/google-cloud-ops-agent.tgz /google-cloud-ops-agent-centos-8.tgz
  COPY --from=centos8-build /google-cloud-ops-agent*.rpm /
  
  FROM scratch AS sles12
  COPY --from=sles12-build /tmp/google-cloud-ops-agent.tgz /google-cloud-ops-agent-sles-12.tgz
  COPY --from=sles12-build /google-cloud-ops-agent*.rpm /
  
  FROM scratch AS sles15
  COPY --from=sles15-build /tmp/google-cloud-ops-agent.tgz /google-cloud-ops-agent-sles-15.tgz
  COPY --from=sles15-build /google-cloud-ops-agent*.rpm /
  
  FROM scratch
  COPY --from=buster /* /
  COPY --from=stretch /* /
  COPY --from=hirsute /* /
  COPY --from=focal /* /
  COPY --from=bionic /* /
  COPY --from=xenial /* /
  COPY --from=centos7 /* /
  COPY --from=centos8 /* /
  COPY --from=sles12 /* /
  COPY --from=sles15 /* /
  