mirror of
https://github.com/go-acme/lego.git
synced 2024-12-22 07:12:22 +02:00
chore: add snap to release packages (#2134)
This commit is contained in:
parent
441775ec65
commit
61553c4195
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -53,6 +53,14 @@ jobs:
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
run: echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
|
||||
|
||||
- name: Install snapcraft
|
||||
run: sudo snap install snapcraft --classic
|
||||
|
||||
- name: Snapcraft login
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
|
||||
run: snapcraft login
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
|
@ -141,3 +141,31 @@ dockers:
|
||||
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
|
||||
- '--label=org.opencontainers.image.version={{.Version}}'
|
||||
- '--platform=linux/arm/v7'
|
||||
|
||||
snapcrafts:
|
||||
- name: lego
|
||||
grade: stable
|
||||
confinement: strict
|
||||
license: MIT
|
||||
base: core22
|
||||
publish: true
|
||||
summary: Lego is a Let's Encrypt/ACME client.
|
||||
description: |
|
||||
Lego is a Let's Encrypt/ACME client written in Go.
|
||||
|
||||
The lego snap makes it easy to install and use Lego on any Linux distribution that supports snaps.
|
||||
|
||||
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
|
||||
|
||||
channel_templates:
|
||||
- edge
|
||||
|
||||
apps:
|
||||
lego:
|
||||
command: bin/lego
|
||||
environment:
|
||||
LEGO_PATH: /var/snap/lego/common/.lego
|
||||
plugs:
|
||||
- network-bind
|
||||
|
@ -30,6 +30,12 @@ docker run goacme/lego -h
|
||||
yay -S lego-bin
|
||||
```
|
||||
|
||||
- [Snap](https://snapcraft.io/lego) (official):
|
||||
|
||||
```bash
|
||||
sudo snap install lego
|
||||
```
|
||||
|
||||
- [FreeBSD (Ports)](https://www.freshports.org/security/lego) (unofficial):
|
||||
|
||||
```bash
|
||||
|
Loading…
Reference in New Issue
Block a user