Skip to content

Commit

Permalink
Downgrade gorilla/schema bug fix (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall authored May 27, 2024
2 parents 401a1c9 + 2a05ae4 commit ccefd78
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
docker: [ {name: 'scratch', sfx: ''}, {name: 'cuda', sfx: '-cuda'}, {name: 'alpine', sfx: '-alpine'} ]
docker: [ {name: 'latest', sfx: ''}, {name: 'cuda', sfx: '-cuda'}, {name: 'alpine', sfx: '-alpine'} ]
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -60,10 +60,11 @@ jobs:
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern=v{{version}}${{ matrix.docker.sfx }}
type=semver,pattern={{version}}${{ matrix.docker.sfx }}
type=semver,pattern={{major}}.{{minor}}${{ matrix.docker.sfx }}
type=semver,pattern={{major}}${{ matrix.docker.sfx }}
type=semver,priority=1010,pattern=${{ matrix.docker.name }}
type=semver,priority=1009,pattern={{major}}${{ matrix.docker.sfx }}
type=semver,priority=1008,pattern={{major}}.{{minor}}${{ matrix.docker.sfx }}
type=semver,priority=1007,pattern={{version}}${{ matrix.docker.sfx }}
type=semver,priority=1006,pattern=v{{version}}${{ matrix.docker.sfx }}
type=ref,enable=true,event=branch,suffix=${{ matrix.docker.sfx }}
# Build and push Docker image with Buildx
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/go-ping/ping v1.1.0
github.com/go-sql-driver/mysql v1.8.1
github.com/gorilla/mux v1.8.1
github.com/gorilla/schema v1.3.0
github.com/gorilla/schema v1.2.1
github.com/gorilla/securecookie v1.1.2
github.com/gorilla/websocket v1.5.0
github.com/hako/durafmt v0.0.0-20210608085754-5c1018a4e16b
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
github.com/gorilla/rpc v1.2.1 h1:yC+LMV5esttgpVvNORL/xX4jvTTEUE30UZhZ5JF7K9k=
github.com/gorilla/rpc v1.2.1/go.mod h1:uNpOihAlF5xRFLuTYhfR0yfCTm0WTQSQttkMSptRfGk=
github.com/gorilla/schema v1.3.0 h1:rbciOzXAx3IB8stEFnfTwO3sYa6EWlQk79XdyustPDA=
github.com/gorilla/schema v1.3.0/go.mod h1:Dg5SSm5PV60mhF2NFaTV1xuYYj8tV8NOPRo4FggUMnM=
github.com/gorilla/schema v1.2.1 h1:tjDxcmdb+siIqkTNoV+qRH2mjYdr2hHe5MKXbp61ziM=
github.com/gorilla/schema v1.2.1/go.mod h1:Dg5SSm5PV60mhF2NFaTV1xuYYj8tV8NOPRo4FggUMnM=
github.com/gorilla/securecookie v1.1.2 h1:YCIWL56dvtr73r6715mJs5ZvhtnY73hBvEF8kXD8ePA=
github.com/gorilla/securecookie v1.1.2/go.mod h1:NfCASbcHqRSY+3a8tlWJwsQap2VX5pwzwo4h3eOamfo=
github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc=
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion init/docker/makedocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ docker buildx build --load --pull --tag notifiarr \
--build-arg "VENDOR=${VENDOR}" \
--build-arg "AUTHOR=${MAINT}" \
--build-arg "SOURCE_URL=${SOURCE_URL}" \
--file init/docker/Dockerfile.scratch .
--file init/docker/Dockerfile.latest .
5 changes: 5 additions & 0 deletions pkg/logs/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ func (l *Logger) SetupLogging(config *LogConfig) {
logFiles = config.LogFiles
logFileMb = config.LogFileMb
l.LogConfig = config

if mnd.IsWindows {
config.Quiet = true
}

l.setDefaultLogPaths()
l.setLogPaths()
l.openLogFile()
Expand Down
2 changes: 1 addition & 1 deletion settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ fi
[ -n "$DOCKER_TAG" ] || export DOCKER_TAG=$(echo $SOURCE_BRANCH | sed 's/^v*\([0-9].*\)/\1/')
[ -n "$DOCKER_REPO" ] || export DOCKER_REPO="golift/notifiarr"
[ -n "$IMAGE_NAME" ] || export IMAGE_NAME="${DOCKER_REPO}:${DOCKER_TAG}"
[ -n "$DOCKERFILE_PATH" ] || export DOCKERFILE_PATH="init/docker/Dockerfile.scratch"
[ -n "$DOCKERFILE_PATH" ] || export DOCKERFILE_PATH="init/docker/Dockerfile.latest"

0 comments on commit ccefd78

Please sign in to comment.