Sage-Bionetworks / nlp-sandbox

Hub repository for the NLP Sandbox
Apache License 2.0
0 stars 0 forks source link

Add LABEL org.opencontainers.image.source to docker image in CI/CD #5

Open tschaffter opened 4 years ago

tschaffter commented 4 years ago

org.opencontainers.image.source=${{ github.event.repository.clone_url }}

Note: It looks like ${{ github.event.repository.clone_url }} is empty when the GitHub action is triggered by on: schedule. This would be an issue for the nightly build of the image.

Depends on https://github.com/Sage-Bionetworks/nlp-sandbox-schemas/issues/32

tschaffter commented 4 years ago

Here are other examples of labels to consider:

        org.opencontainers.image.created=${{ steps.prep.outputs.created }}
        org.opencontainers.image.url=${{ github.event.repository.html_url }}
        org.opencontainers.image.source=${{ github.event.repository.clone_url }}
        org.opencontainers.image.version=${{ steps.prep.outputs.version }}
        org.opencontainers.image.revision=${{ github.sha }}
        org.opencontainers.image.licenses=${{ github.event.repository.license.spdx_id }}