In case anyone needs it. I got this error trying to publish to GHE:
time="2020-03-05T09:21:16Z" level=fatal msg="Failed to create the release. Failed to retrieve or create a release: Failed to create release: Post https://<ghe>/repos/<org>/<repo>/releases: x509: certificate signed by unknown authority"
I build my own docker image as follows:
FROM alpine:latest as pre COPY <certfiles> /usr/local/share/ca-certificates/ RUN apk update && apk add ca-certificates FROM plugins/github-release COPY <certfiles> /usr/local/share/ca-certificates/ COPY --from=pre /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
This I am using in the pipeline as follows:
- name: publish image: myregistry/droneplugins/github-release settings: files: awesomefile api_key: from_secret: github_token base_url: https://api.<ghe>/ upload_url: https://uploads.<ghe>/ when: event: tag
Please let me know if there is a better way.