@marcel91200 / caddy Mirror · read-only / commits / aefd821a
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 13, 14:15 UTC

dist: deb package manpages and bash completion scripts (#5007)

Mohammed Al Sahaf committed Sep 2, 2022 at 06:39 UTC aefd821ae0b966c8f8599eaa59dffe1b0fc51740
1 file changed +8 -1
.goreleaser.yml
+8 -1
@@ -14,7 +14,11 @@ before:
14 # run `go mod tidy`. The `/bin/sh -c '...'` is because goreleaser can't find cd in PATH without shell invocation.
15 - /bin/sh -c 'cd ./caddy-build && go mod tidy'
16 - git clone --depth 1 https://github.com/caddyserver/dist caddy-dist
17 + - mkdir -p caddy-dist/man
18 - go mod download
19 + - go run cmd/caddy/main.go manpage --directory ./caddy-dist/man
20 + - gzip -r ./caddy-dist/man/
21 + - /bin/sh -c 'go run cmd/caddy/main.go completion bash > ./caddy-dist/scripts/bash-completion'
22
23 builds:
24 - env:
@@ -96,13 +100,16 @@ nfpms:
100 - src: ./caddy-dist/welcome/index.html
101 dst: /usr/share/caddy/index.html
102
99 - - src: ./caddy-dist/scripts/completions/bash-completion
103 + - src: ./caddy-dist/scripts/bash-completion
104 dst: /etc/bash_completion.d/caddy
105
106 - src: ./caddy-dist/config/Caddyfile
107 dst: /etc/caddy/Caddyfile
108 type: config
109
110 + - src: ./caddy-dist/man/*
111 + dst: /usr/share/man/man8/
112 +
113 scripts:
114 postinstall: ./caddy-dist/scripts/postinstall.sh
115 preremove: ./caddy-dist/scripts/preremove.sh