forked from TrueCloudLab/lego
Prepare release v1.2.0 (#701)
This commit is contained in:
parent
5f383ec4f4
commit
88f86af113
5 changed files with 52 additions and 38 deletions
|
@ -1,4 +1,3 @@
|
||||||
.git
|
|
||||||
lego.exe
|
lego.exe
|
||||||
lego
|
lego
|
||||||
.lego
|
.lego
|
||||||
|
|
18
CHANGELOG.md
18
CHANGELOG.md
|
@ -1,5 +1,23 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [v1.2.0] - 2018-11-04
|
||||||
|
|
||||||
|
### Added:
|
||||||
|
- **[dnsprovider]** Add DNS Provider for ConoHa DNS
|
||||||
|
- **[dnsprovider]** Add DNS Provider for MyDNS.jp
|
||||||
|
- **[dnsprovider]** Add DNS Provider for Selectel
|
||||||
|
|
||||||
|
### Fixed:
|
||||||
|
- **[dnsprovider]** netcup: make unmarshalling of api-responses more lenient.
|
||||||
|
|
||||||
|
### Changed:
|
||||||
|
- **[dnsprovider]** aurora: change DNS client
|
||||||
|
- **[dnsprovider]** azure: update auth to support instance metadata service
|
||||||
|
- **[dnsprovider]** dnsmadeeasy: log response body on error
|
||||||
|
- **[lib]** TLS-ALPN-01: Update idPeAcmeIdentifierV1, draft refs.
|
||||||
|
- **[lib]** Do not send a JWS body when POSTing challenges.
|
||||||
|
- **[lib]** Support POST-as-GET.
|
||||||
|
|
||||||
## [v1.1.0] - 2018-10-16
|
## [v1.1.0] - 2018-10-16
|
||||||
|
|
||||||
### Added:
|
### Added:
|
||||||
|
|
10
Dockerfile
10
Dockerfile
|
@ -1,12 +1,14 @@
|
||||||
FROM golang:alpine3.7 as builder
|
FROM golang:alpine3.8 as builder
|
||||||
|
|
||||||
ARG LEGO_VERSION=dev
|
RUN apk --update upgrade \
|
||||||
|
&& apk --no-cache --no-progress add make git \
|
||||||
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/xenolf/lego
|
WORKDIR /go/src/github.com/xenolf/lego
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go build -ldflags="-s -X main.version=${LEGO_VERSION}"
|
RUN make version-build
|
||||||
|
|
||||||
FROM alpine:3.7
|
FROM alpine:3.8
|
||||||
RUN apk update && apk add --no-cache --virtual ca-certificates
|
RUN apk update && apk add --no-cache --virtual ca-certificates
|
||||||
COPY --from=builder /go/src/github.com/xenolf/lego/lego /usr/bin/lego
|
COPY --from=builder /go/src/github.com/xenolf/lego/lego /usr/bin/lego
|
||||||
ENTRYPOINT [ "/usr/bin/lego" ]
|
ENTRYPOINT [ "/usr/bin/lego" ]
|
||||||
|
|
17
Makefile
17
Makefile
|
@ -1,6 +1,10 @@
|
||||||
.PHONY: all
|
.PHONY: clean checks test build image dependencies
|
||||||
|
|
||||||
GOFILES := $(shell go list -f '{{range $$index, $$element := .GoFiles}}{{$$.Dir}}/{{$$element}}{{"\n"}}{{end}}' ./... | grep -v '/vendor/')
|
LEGO_IMAGE := xenolf/lego
|
||||||
|
|
||||||
|
TAG_NAME := $(shell git tag -l --contains HEAD)
|
||||||
|
SHA := $(shell git rev-parse HEAD)
|
||||||
|
VERSION := $(if $(TAG_NAME),$(TAG_NAME),$(SHA))
|
||||||
|
|
||||||
default: clean checks test build
|
default: clean checks test build
|
||||||
|
|
||||||
|
@ -8,7 +12,8 @@ clean:
|
||||||
rm -rf dist/ builds/ cover.out
|
rm -rf dist/ builds/ cover.out
|
||||||
|
|
||||||
build: clean
|
build: clean
|
||||||
go build
|
@echo Version: $(VERSION)
|
||||||
|
go build -v -ldflags '-X "main.version=${VERSION}"'
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
dep ensure -v
|
dep ensure -v
|
||||||
|
@ -19,6 +24,6 @@ test: clean
|
||||||
checks:
|
checks:
|
||||||
golangci-lint run
|
golangci-lint run
|
||||||
|
|
||||||
check-fmt: SHELL := /bin/bash
|
image:
|
||||||
check-fmt:
|
@echo Version: $(VERSION)
|
||||||
diff -u <(echo -n) <(gofmt -d $(GOFILES))
|
docker build -t $(LEGO_IMAGE) .
|
||||||
|
|
32
README.md
32
README.md
|
@ -10,35 +10,17 @@ Let's Encrypt client and ACME library written in Go
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
lego supports both binary installs and install from source.
|
### Binaries
|
||||||
|
|
||||||
To get the binary just download the latest release for your OS/Arch from [the release page](https://github.com/xenolf/lego/releases)
|
To get the binary just download the latest release for your OS/Arch from [the release page](https://github.com/xenolf/lego/releases)
|
||||||
and put the binary somewhere convenient. lego does not assume anything about the location you run it from.
|
and put the binary somewhere convenient. lego does not assume anything about the location you run it from.
|
||||||
|
|
||||||
To install from source, just run:
|
### From Docker
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get -u github.com/xenolf/lego
|
docker run xenolf/lego -h
|
||||||
```
|
```
|
||||||
|
|
||||||
To build lego inside a Docker container, just run:
|
|
||||||
```bash
|
|
||||||
docker build -t lego .
|
|
||||||
```
|
|
||||||
|
|
||||||
That will build lego from the current source, if you want to build a different
|
|
||||||
version, you can checkout the desired branch/tag/commit, and re-running the
|
|
||||||
above mentioned command.
|
|
||||||
|
|
||||||
If you want to tag the binary with the designated release, you can do so by
|
|
||||||
passing the version identifier as a [`--build-arg`](https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables---build-arg)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
docker build --build-arg LEGO_VERSION=v1.1.0 -t lego .
|
|
||||||
```
|
|
||||||
|
|
||||||
Otherwise the release will be tagged with the `dev` version identifier.
|
|
||||||
|
|
||||||
### From the package manager
|
### From the package manager
|
||||||
|
|
||||||
- [ArchLinux (AUR)](https://aur.archlinux.org/packages/lego-git):
|
- [ArchLinux (AUR)](https://aur.archlinux.org/packages/lego-git):
|
||||||
|
@ -47,6 +29,14 @@ Otherwise the release will be tagged with the `dev` version identifier.
|
||||||
yaourt -S lego-git
|
yaourt -S lego-git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### From source
|
||||||
|
|
||||||
|
To install from source, just run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
go get -u github.com/xenolf/lego
|
||||||
|
```
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Register with CA
|
- Register with CA
|
||||||
|
|
Loading…
Reference in a new issue