2024-10-10 22:11:14 +02:00
|
|
|
version: 2
|
|
|
|
|
2018-05-29 19:40:00 +02:00
|
|
|
project_name: lego
|
|
|
|
|
|
|
|
builds:
|
|
|
|
- binary: lego
|
2018-12-06 23:50:17 +02:00
|
|
|
|
2024-11-11 14:32:37 +02:00
|
|
|
main: ./cmd/lego/
|
2020-03-08 23:19:12 +02:00
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
flags:
|
|
|
|
- -trimpath
|
2018-12-06 23:50:17 +02:00
|
|
|
ldflags:
|
|
|
|
- -s -w -X main.version={{.Version}}
|
|
|
|
|
2018-05-29 19:40:00 +02:00
|
|
|
goos:
|
|
|
|
- linux
|
2024-10-28 15:49:24 +02:00
|
|
|
- darwin
|
|
|
|
- windows
|
2018-05-29 19:40:00 +02:00
|
|
|
- freebsd
|
|
|
|
- openbsd
|
2024-06-29 18:50:36 +02:00
|
|
|
- solaris
|
2018-05-29 19:40:00 +02:00
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- 386
|
|
|
|
- arm
|
|
|
|
- arm64
|
2020-06-03 22:26:35 +02:00
|
|
|
- mips
|
|
|
|
- mipsle
|
|
|
|
- mips64
|
|
|
|
- mips64le
|
2018-05-29 19:40:00 +02:00
|
|
|
goarm:
|
|
|
|
- 7
|
2020-03-08 23:19:12 +02:00
|
|
|
- 6
|
|
|
|
- 5
|
2020-06-03 22:26:35 +02:00
|
|
|
gomips:
|
|
|
|
- hardfloat
|
|
|
|
- softfloat
|
2018-05-29 19:40:00 +02:00
|
|
|
|
|
|
|
ignore:
|
|
|
|
- goos: darwin
|
|
|
|
goarch: 386
|
|
|
|
- goos: openbsd
|
|
|
|
goarch: arm
|
|
|
|
|
2024-02-02 03:21:10 +02:00
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- '(?i)^chore:'
|
|
|
|
- '(?i)^Detach v[\d|.]+'
|
|
|
|
- '(?i)^Prepare release v[\d|.]+'
|
|
|
|
|
2019-08-13 17:07:06 +02:00
|
|
|
archives:
|
|
|
|
- id: lego
|
2020-06-03 22:26:35 +02:00
|
|
|
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
|
2019-08-13 17:07:06 +02:00
|
|
|
format: tar.gz
|
|
|
|
format_overrides:
|
|
|
|
- goos: windows
|
|
|
|
format: zip
|
|
|
|
files:
|
|
|
|
- LICENSE
|
|
|
|
- CHANGELOG.md
|
2023-02-26 15:27:16 +02:00
|
|
|
|
|
|
|
docker_manifests:
|
|
|
|
- name_template: 'goacme/lego:{{ .Tag }}'
|
|
|
|
image_templates:
|
|
|
|
- 'goacme/lego:{{ .Tag }}-amd64'
|
|
|
|
- 'goacme/lego:{{ .Tag }}-arm64'
|
|
|
|
- 'goacme/lego:{{ .Tag }}-armv7'
|
|
|
|
- name_template: 'goacme/lego:latest'
|
|
|
|
image_templates:
|
|
|
|
- 'goacme/lego:{{ .Tag }}-amd64'
|
|
|
|
- 'goacme/lego:{{ .Tag }}-arm64'
|
|
|
|
- 'goacme/lego:{{ .Tag }}-armv7'
|
|
|
|
- name_template: 'goacme/lego:v{{ .Major }}.{{ .Minor }}'
|
|
|
|
image_templates:
|
|
|
|
- 'goacme/lego:v{{ .Major }}.{{ .Minor }}-amd64'
|
|
|
|
- 'goacme/lego:v{{ .Major }}.{{ .Minor }}-arm64'
|
|
|
|
- 'goacme/lego:v{{ .Major }}.{{ .Minor }}-armv7'
|
|
|
|
|
|
|
|
dockers:
|
|
|
|
- use: buildx
|
|
|
|
goos: linux
|
|
|
|
goarch: amd64
|
|
|
|
dockerfile: buildx.Dockerfile
|
|
|
|
image_templates:
|
|
|
|
- 'goacme/lego:latest-amd64'
|
|
|
|
- 'goacme/lego:{{ .Tag }}-amd64'
|
|
|
|
- 'goacme/lego:v{{ .Major }}.{{ .Minor }}-amd64'
|
|
|
|
build_flag_templates:
|
|
|
|
- '--pull'
|
|
|
|
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
|
|
|
|
- '--label=org.opencontainers.image.title={{.ProjectName}}'
|
|
|
|
- '--label=org.opencontainers.image.description=Lets Encrypt/ACME client and library written in Go'
|
|
|
|
- '--label=org.opencontainers.image.source={{.GitURL}}'
|
|
|
|
- '--label=org.opencontainers.image.url={{.GitURL}}'
|
|
|
|
- '--label=org.opencontainers.image.documentation=https://go-acme.github.io/lego'
|
|
|
|
- '--label=org.opencontainers.image.created={{.Date}}'
|
|
|
|
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
|
|
|
|
- '--label=org.opencontainers.image.version={{.Version}}'
|
|
|
|
- '--platform=linux/amd64'
|
|
|
|
|
|
|
|
- use: buildx
|
|
|
|
goos: linux
|
|
|
|
goarch: arm64
|
|
|
|
dockerfile: buildx.Dockerfile
|
|
|
|
image_templates:
|
|
|
|
- 'goacme/lego:latest-arm64'
|
|
|
|
- 'goacme/lego:{{ .Tag }}-arm64'
|
|
|
|
- 'goacme/lego:v{{ .Major }}.{{ .Minor }}-arm64'
|
|
|
|
build_flag_templates:
|
|
|
|
- '--pull'
|
|
|
|
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
|
|
|
|
- '--label=org.opencontainers.image.title={{.ProjectName}}'
|
|
|
|
- '--label=org.opencontainers.image.description=Lets Encrypt/ACME client and library written in Go'
|
|
|
|
- '--label=org.opencontainers.image.source={{.GitURL}}'
|
|
|
|
- '--label=org.opencontainers.image.url={{.GitURL}}'
|
|
|
|
- '--label=org.opencontainers.image.documentation=https://go-acme.github.io/lego'
|
|
|
|
- '--label=org.opencontainers.image.created={{.Date}}'
|
|
|
|
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
|
|
|
|
- '--label=org.opencontainers.image.version={{.Version}}'
|
|
|
|
- '--platform=linux/arm64'
|
|
|
|
|
|
|
|
- use: buildx
|
|
|
|
goos: linux
|
|
|
|
goarch: arm
|
|
|
|
goarm: '7'
|
|
|
|
dockerfile: buildx.Dockerfile
|
|
|
|
image_templates:
|
|
|
|
- 'goacme/lego:latest-armv7'
|
|
|
|
- 'goacme/lego:{{ .Tag }}-armv7'
|
|
|
|
- 'goacme/lego:v{{ .Major }}.{{ .Minor }}-armv7'
|
|
|
|
build_flag_templates:
|
|
|
|
- '--pull'
|
|
|
|
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
|
|
|
|
- '--label=org.opencontainers.image.title={{.ProjectName}}'
|
|
|
|
- '--label=org.opencontainers.image.description=Lets Encrypt/ACME client and library written in Go'
|
|
|
|
- '--label=org.opencontainers.image.source={{.GitURL}}'
|
|
|
|
- '--label=org.opencontainers.image.url={{.GitURL}}'
|
|
|
|
- '--label=org.opencontainers.image.documentation=https://go-acme.github.io/lego'
|
|
|
|
- '--label=org.opencontainers.image.created={{.Date}}'
|
|
|
|
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
|
|
|
|
- '--label=org.opencontainers.image.version={{.Version}}'
|
|
|
|
- '--platform=linux/arm/v7'
|
2024-03-15 04:12:08 +02:00
|
|
|
|
|
|
|
snapcrafts:
|
2024-11-13 16:52:37 +02:00
|
|
|
- name_template: "{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
|
2024-11-13 16:08:24 +02:00
|
|
|
disable: false
|
|
|
|
publish: true
|
2024-03-15 04:12:08 +02:00
|
|
|
grade: stable
|
|
|
|
confinement: strict
|
|
|
|
license: MIT
|
|
|
|
base: core22
|
|
|
|
summary: Lego is a Let's Encrypt/ACME client.
|
|
|
|
description: |
|
|
|
|
Lego is a Let's Encrypt/ACME client written in Go.
|
2024-11-13 16:08:24 +02:00
|
|
|
|
2024-03-15 04:12:08 +02:00
|
|
|
The lego snap makes it easy to install and use Lego on any Linux distribution that supports snaps.
|
2024-11-13 16:08:24 +02:00
|
|
|
|
2024-03-15 04:12:08 +02:00
|
|
|
Usage:
|
|
|
|
* `sudo snap install lego`
|
|
|
|
* `sudo lego --email="you@example.com" --domains="example.com" --server=https://acme-staging-v02.api.letsencrypt.org/directory --http --http.port :8080 run
|
|
|
|
apps:
|
|
|
|
lego:
|
2024-11-13 16:08:24 +02:00
|
|
|
command: lego
|
2024-03-15 04:12:08 +02:00
|
|
|
environment:
|
|
|
|
LEGO_PATH: /var/snap/lego/common/.lego
|
|
|
|
plugs:
|
|
|
|
- network-bind
|
2024-11-21 01:17:36 +02:00
|
|
|
|
|
|
|
aurs:
|
|
|
|
- description: "Let's Encrypt client and ACME library written in Go"
|
|
|
|
skip_upload: false
|
|
|
|
homepage: https://go-acme.github.io/lego/
|
|
|
|
name: 'lego-bin'
|
|
|
|
provides:
|
|
|
|
- lego
|
|
|
|
maintainers:
|
|
|
|
- "Fernandez Ludovic <lfernandez dot dev at gmail dot com>"
|
|
|
|
license: APACHE
|
|
|
|
private_key: "{{ .Env.AUR_KEY }}"
|
|
|
|
git_url: "ssh://aur@aur.archlinux.org/lego-bin.git"
|
|
|
|
commit_author:
|
|
|
|
name: ldez
|
|
|
|
email: ldez@users.noreply.github.com
|
|
|
|
package: |-
|
|
|
|
# Bin
|
|
|
|
install -Dm755 "./prm" "${pkgdir}/usr/bin/lego"
|
|
|
|
|
|
|
|
# License
|
|
|
|
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/lego/LICENSE"
|