diff options
author | Kévin Dunglas <[email protected]> | 2024-10-22 22:53:14 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-10-22 14:53:14 -0600 |
commit | eaaa2e5872ef9e845a50c6aade36676c0ecfe2e2 (patch) | |
tree | fb1b220c94d7fdc0ca4fa604bb819f03349d1c63 | |
parent | 4457afc170cb2f42d8f361de8b5d2668d80232ac (diff) | |
download | caddy-eaaa2e5872ef9e845a50c6aade36676c0ecfe2e2.tar.gz caddy-eaaa2e5872ef9e845a50c6aade36676c0ecfe2e2.zip |
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
-rw-r--r-- | .github/workflows/cross-build.yml | 2 | ||||
-rw-r--r-- | .goreleaser.yml | 2 | ||||
-rw-r--r-- | README.md | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/cross-build.yml b/.github/workflows/cross-build.yml index e77e4e992..af0394603 100644 --- a/.github/workflows/cross-build.yml +++ b/.github/workflows/cross-build.yml @@ -70,4 +70,4 @@ jobs: continue-on-error: true working-directory: ./cmd/caddy run: | - GOOS=$GOOS GOARCH=$GOARCH go build -tags nobadger -trimpath -o caddy-"$GOOS"-$GOARCH 2> /dev/null + GOOS=$GOOS GOARCH=$GOARCH go build -tags=nobadger,nomysql,nopgx -trimpath -o caddy-"$GOOS"-$GOARCH 2> /dev/null diff --git a/.goreleaser.yml b/.goreleaser.yml index 5c1f7df40..37614e75f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -83,6 +83,8 @@ builds: - -s -w tags: - nobadger + - nomysql + - nopgx signs: - cmd: cosign @@ -131,7 +131,7 @@ $ xcaddy build 4. Initialize a Go module: `go mod init caddy` 5. (Optional) Pin Caddy version: `go get github.com/caddyserver/caddy/v2@version` replacing `version` with a git tag, commit, or branch name. 6. (Optional) Add plugins by adding their import: `_ "import/path/here"` -7. Compile: `go build` +7. Compile: `go build -tags=nobadger,nomysql,nopgx` |