asciidoc-confluence-publisher-docker/publish.sh
#!/usr/bin/env sh
exec java -cp "/opt/*:/opt/extensions/*" \
    org.sahli.asciidoc.confluence.publisher.cli.AsciidocConfluencePublisherCommandLineClient \
    asciidocRootFolder="$ASCIIDOC_ROOT_FOLDER" \
    sourceEncoding="$SOURCE_ENCODING" \
    rootConfluenceUrl="$ROOT_CONFLUENCE_URL" \
    skipSslVerification="$SKIP_SSL_VERIFICATION" \
    maxRequestsPerSecond="$MAX_REQUESTS_PER_SECOND" \
    connectionTimeToLive="$CONNECTION_TIME_TO_LIVE" \
    spaceKey="$SPACE_KEY" \
    ancestorId="$ANCESTOR_ID" \
    username="$USERNAME" \
    password="$PASSWORD" \
    pageTitlePrefix="$PAGE_TITLE_PREFIX" \
    pageTitleSuffix="$PAGE_TITLE_SUFFIX" \
    publishingStrategy="$PUBLISHING_STRATEGY" \
    orphanRemovalStrategy="$ORPHAN_REMOVAL_STRATEGY" \
    versionMessage="$VERSION_MESSAGE" \
    notifyWatchers="$NOTIFY_WATCHERS" \
    attributes="$ATTRIBUTES" \
    proxyScheme="$PROXY_SCHEME" \
    proxyHost="$PROXY_HOST" \
    proxyPort="$PROXY_PORT" \
    proxyUsername="$PROXY_USERNAME" \
    proxyPassword="$PROXY_PASSWORD" \
    convertOnly="$CONVERT_ONLY" \
    asciidocBuildFolder="$ASCIIDOC_BUILD_FOLDER" \
    restApiVersion="$REST_API_VERSION"
