Skip to content

Commit

Permalink
only add author if successful
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Jun 24, 2024
1 parent c3fb079 commit 6c5db42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ LABELS+=("org.opencontainers.image.revision=$GITHUB_SHA")
LABELS+=("org.opencontainers.image.created=\"$(date -u +"%Y-%m-%dT%H:%M:%SZ")\"")

REPO_AUTHOR=$(repository_author "$GITHUB_REPOSITORY")
LABELS+=("org.opencontainers.image.authors=\"$REPO_AUTHOR\"")
if [ -n "$REPO_AUTHOR" ]; then
LABELS+=("org.opencontainers.image.authors=\"$REPO_AUTHOR\"")
fi

# TODO can we extract the license definition from the github repo?
# lunchmoney/lunchmoney-assets/Dockerfile:13:7: org.opencontainers.image.licenses="MIT" \
Expand Down

0 comments on commit 6c5db42

Please sign in to comment.