Compare commits
6 Commits
v3.1.0
...
beca07ed60
| Author | SHA1 | Date | |
|---|---|---|---|
| beca07ed60 | |||
| 69f2142631 | |||
| 4cbad67510 | |||
| da9d8d5fff | |||
| 52dd07bcef | |||
| 9e802c4fec |
@@ -6,12 +6,12 @@ on:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- 'build/**'
|
||||
- '.github/workflows/**'
|
||||
- '.gitea/workflows/**'
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- 'build/**'
|
||||
- '.github/workflows/**'
|
||||
- '.gitea/workflows/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
steps:
|
||||
-
|
||||
name: Checkout code
|
||||
uses: actions/checkout@v6.0.1
|
||||
uses: actions/checkout@v6.0.2
|
||||
-
|
||||
name: Read Version from file
|
||||
id: version
|
||||
@@ -41,19 +41,19 @@ jobs:
|
||||
uses: docker/setup-qemu-action@v3.7.0
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3.11.1
|
||||
uses: docker/setup-buildx-action@v3.12.0
|
||||
with:
|
||||
driver-opts: image=moby/buildkit:v0.23.2@sha256:ddd1ca44b21eda906e81ab14a3d467fa6c39cd73b9a39df1196210edcb8db59e
|
||||
-
|
||||
name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3.6.0
|
||||
uses: docker/login-action@v3.7.0
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ vars.GH_USERNAME }}
|
||||
password: ${{ secrets.GH_TOKEN }}
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v3.6.0
|
||||
uses: docker/login-action@v3.7.0
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
@@ -69,14 +69,14 @@ jobs:
|
||||
type=sha,format=long,prefix=sha-
|
||||
type=raw,value=${{ steps.version.outputs.major_version }}
|
||||
type=raw,value=${{ steps.version.outputs.minor_version }}
|
||||
type=raw,value=${{ steps.version.outputs.version }}
|
||||
type=raw,value=${{ steps.version.outputs.version }},priority=1000
|
||||
type=raw,value=latest
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v6.18.0
|
||||
uses: docker/build-push-action@v6.19.2
|
||||
with:
|
||||
context: ./build
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
push: ${{ gitea.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
@@ -1,3 +1,10 @@
|
||||
# v3.1.1
|
||||
|
||||
## What's Changed
|
||||
|
||||
* Fixed crash caused by concurrent writes under high load ([#684](https://github.com/selfhst/icons/issues/684))
|
||||
* Suppress favicon error log message when viewing icons directly from a browser
|
||||
|
||||
# v3.1.0
|
||||
|
||||
## What's Changed
|
||||
|
||||
@@ -1 +1 @@
|
||||
3.1.0
|
||||
3.1.1
|
||||
@@ -54,7 +54,6 @@ func (c *Cache) Get(key string) (string, bool) {
|
||||
}
|
||||
|
||||
if time.Since(item.Timestamp) > c.ttl {
|
||||
delete(c.items, key)
|
||||
return "", false
|
||||
}
|
||||
|
||||
@@ -430,6 +429,11 @@ func main() {
|
||||
|
||||
mux.HandleFunc("GET /custom/{filename}", handleCustomIcon)
|
||||
|
||||
// Suppress favicon load error message in logs when viewing via browser
|
||||
mux.HandleFunc("GET /favicon.ico", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
})
|
||||
|
||||
mux.HandleFunc("GET /{iconname}/{colorcode}", handleIcon)
|
||||
mux.HandleFunc("GET /{iconname}", handleIcon)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user