-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10458 from hectorj2f/cve-caddy-GHSA-45x7-px36-x8w8
GHSA-45x7-px36-x8w8 : fix CVE for Wolfi package caddy
- Loading branch information
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package: | ||
name: caddy | ||
version: 2.7.6 | ||
epoch: 0 | ||
epoch: 1 | ||
description: Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS | ||
copyright: | ||
- license: Apache-2.0 | ||
|
@@ -12,40 +12,45 @@ environment: | |
- busybox | ||
- ca-certificates-bundle | ||
environment: | ||
CGO_ENABLED: 0 | ||
CGO_ENABLED: "0" | ||
|
||
pipeline: | ||
- uses: git-checkout | ||
with: | ||
expected-commit: 6d9a83376b5e19b3c0368541ee46044ab284038b | ||
repository: https://github.com/caddyserver/caddy | ||
tag: v${{package.version}} | ||
expected-commit: 6d9a83376b5e19b3c0368541ee46044ab284038b | ||
|
||
- runs: | | ||
install -m644 -D "./Caddyfile" "${{targets.destdir}}/etc/caddy/Caddyfile" | ||
install -m755 -D "./index.html" "${{targets.destdir}}/usr/share/caddy/index.html" | ||
- uses: go/bump | ||
with: | ||
deps: golang.org/x/[email protected] | ||
|
||
# TODO: Add support for plugins | ||
- uses: go/build | ||
with: | ||
packages: ./cmd/caddy | ||
output: caddy | ||
ldflags: -s -w | ||
output: caddy | ||
packages: ./cmd/caddy | ||
|
||
- uses: strip | ||
|
||
subpackages: | ||
- name: caddy-man | ||
description: caddy manpages | ||
pipeline: | ||
- runs: | | ||
mkdir -p "${{targets.subpkgdir}}"/usr/share | ||
"${{targets.destdir}}"/usr/bin/caddy manpage --directory "${{targets.subpkgdir}}"/usr/share/ | ||
description: caddy manpages | ||
|
||
update: | ||
enabled: true | ||
manual: false | ||
github: | ||
identifier: caddyserver/caddy | ||
strip-prefix: v | ||
use-tag: true | ||
tag-filter: v | ||
use-tag: true |