Skip to content

Commit

Permalink
Fix build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaharagon committed Apr 5, 2024
1 parent 09a2893 commit de38023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
inputs:
build_from:
type: string
default: =./caddy-umami
goos:
type: string
goarch:
Expand All @@ -21,6 +20,7 @@ on:
type: string

env:
BUILD_FROM: ${{ inputs.build_from || '=./caddy-umami' }}
CGO_ENABLED: 0
GOOS: ${{ inputs.goos || 'linux' }}
GOARCH: ${{ inputs.goarch || 'amd64' }}
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Build Caddy
run: |
GOOS=$GOOS GOARCH=$GOARCH ./xcaddy build \
--with github.com/jonaharagon/caddy-umami${{ inputs.build_from }} \
--with github.com/jonaharagon/caddy-umami${{ env.BUILD_FROM }} \
--with github.com/caddyserver/cache-handler \
--with github.com/digilolnet/caddy-bunny-ip \
--output "caddy-$GOOS-$GOARCH"
Expand Down
2 changes: 1 addition & 1 deletion umami.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (p Umami) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.

p.logger.Debug("IP", zap.String("IP", req.Header.Get("X-Forwarded-For")))
p.logger.Debug("User-Agent", zap.String("User-Agent", req.UserAgent()))
p.logger.Debug("Body", zap.String("Body", string(body)))
p.logger.Debug("Body", zap.Any("Body", body))

resp, err := client.Do(req)
if err != nil {
Expand Down

0 comments on commit de38023

Please sign in to comment.