@marcel91200 / caddy Mirror · read-only / commits / eaaa2e58
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 12, 07:00 UTC

chore: compile without nosql's support for Postgres and MySQL (#6655)

* chore: compile without nosql's support for Postgres and MySQL * Update cross-build.yml * Update cross-build.yml * Update README.md

Kévin Dunglas committed Oct 22, 2024 at 22:53 UTC eaaa2e5872ef9e845a50c6aade36676c0ecfe2e2
3 files changed +4 -2
.github/workflows/cross-build.yml
+1 -1
@@ -70,4 +70,4 @@ jobs:
70 continue-on-error: true
71 working-directory: ./cmd/caddy
72 run: |
73 - GOOS=$GOOS GOARCH=$GOARCH go build -tags nobadger -trimpath -o caddy-"$GOOS"-$GOARCH 2> /dev/null
73 + GOOS=$GOOS GOARCH=$GOARCH go build -tags=nobadger,nomysql,nopgx -trimpath -o caddy-"$GOOS"-$GOARCH 2> /dev/null
.goreleaser.yml
+2
@@ -83,6 +83,8 @@ builds:
83 - -s -w
84 tags:
85 - nobadger
86 + - nomysql
87 + - nopgx
88
89 signs:
90 - cmd: cosign
README.md
+1 -1
@@ -131,7 +131,7 @@ $ xcaddy build
131 4. Initialize a Go module: `go mod init caddy`
132 5. (Optional) Pin Caddy version: `go get github.com/caddyserver/caddy/v2@version` replacing `version` with a git tag, commit, or branch name.
133 6. (Optional) Add plugins by adding their import: `_ "import/path/here"`
134 -7. Compile: `go build`
134 +7. Compile: `go build -tags=nobadger,nomysql,nopgx`
135
136
137