FROM scratch

ARG SOURCE_SHA
ARG APP_VERSION
ARG APP_RELEASE_DIGEST

LABEL org.opencontainers.image.source="https://github.com/pingcap-inc/nexuscrm-app-packs" \
      org.opencontainers.image.revision="${SOURCE_SHA}" \
      org.opencontainers.image.version="${APP_VERSION}" \
      io.nexuscrm.app.id="io.nexuscrm.sfcrm" \
      io.nexuscrm.app.release.digest="${APP_RELEASE_DIGEST}"

COPY app-package.json /nexuscrm/apprelease/app-package.json
COPY publisher-attestation.json /nexuscrm/apprelease/publisher-attestation.json
COPY publisher-public-key.json /nexuscrm/apprelease/publisher-public-key.json
COPY publication.json /nexuscrm/apprelease/publication.json
