Add trusted certificates from build environment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Steven Polley 2020-04-25 01:16:48 -06:00
parent 7ea69bbd69
commit 65a7ac04f2
2 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,8 @@ steps:
- go version - go version
- go get - go get
- go build -a -ldflags '-w' - go build -a -ldflags '-w'
- cp /usr/local/go/lib/time/zoneinfo.zip .
- cp /etc/ssl/certs/ca-certificates.crt .
- name: package in docker container - name: package in docker container
image: plugins/docker image: plugins/docker

View File

@ -4,6 +4,10 @@ COPY public public
COPY templates templates COPY templates templates
COPY covid19-edmonton . COPY covid19-edmonton .
# These must be supplied. In the CICD pipeline, .drone.yml, this is available from the build environment
COPY ca-certificates.crt /etc/ssl/certs/
COPY zoneinfo.zip ./zoneinfo.zip
EXPOSE 8080 EXPOSE 8080
CMD [ "./covid19-edmonton", "-web"] CMD [ "./covid19-edmonton", "-web"]