grim/tagpull

Look for the annotation on the deployment itself and not in it's template
FROM golang:1.14 AS build
RUN set -ex && \
apt-get update && \
apt-get install -y --no-install-recommends ca-certificates
COPY . /tagpull
WORKDIR /tagpull
RUN CGO_ENABLED=0 go build -ldflags '-w -extldflags "-static"'
FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build /tagpull/tagpull /tagpull
CMD ["/tagpull"]