Prepare release v1.2.0 (#701)

This commit is contained in:
Ludovic Fernandez 2018-11-05 15:14:30 +01:00 committed by GitHub
parent 5f383ec4f4
commit 88f86af113
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 52 additions and 38 deletions

View file

@ -1,4 +1,3 @@
.git
lego.exe lego.exe
lego lego
.lego .lego

View file

@ -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:

View file

@ -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" ]

View file

@ -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) .

View file

@ -10,43 +10,33 @@ 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.
### From Docker
```bash
docker run xenolf/lego -h
```
### From the package manager
- [ArchLinux (AUR)](https://aur.archlinux.org/packages/lego-git):
```bash
yaourt -S lego-git
```
### From source
To install from source, just run: To install from source, just run:
```bash ```bash
go get -u github.com/xenolf/lego go get -u github.com/xenolf/lego
``` ```
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
- [ArchLinux (AUR)](https://aur.archlinux.org/packages/lego-git):
```bash
yaourt -S lego-git
```
## Features ## Features
- Register with CA - Register with CA