Install CAcert root certitficate

The CAcert root certificate is needed to access services in the
cacert.org domain (i.e. Gitea API at https://code.cacert.org/).
This commit is contained in:
Jan Dittberner 2022-10-16 12:12:01 +02:00
parent 2db482fdc4
commit 450770e9d2
2 changed files with 7 additions and 3 deletions

View file

@ -8,6 +8,9 @@ RUN apt-get update \
&& apt-get install -y libsqlite3-dev sqlite3 \
&& rm -rf /var/lib/apt/lists/*
RUN curl -o /usr/local/share/ca-certificates/cacert-root.crt http://www.cacert.org/certs/root_X0F.crt \
&& update-ca-certificates
WORKDIR /build
COPY entrypoint.sh /

View file

@ -2,6 +2,7 @@
set -e
golangci-lint run
go test ./...
gorelease release --rm-dist $@
go mod download -x
golangci-lint run --verbose
go test -v ./...
goreleaser release --rm-dist "$@"