diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a578f0f..70c5c59 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: - name: Commit and push changes id: commit-dockerfiles run: | - git add */*/Dockerfile + git add */*/Dockerfile README.md if output=$(git status --porcelain) && [ ! -z "$output" ]; then git commit -m "Bump Caddy version" -a git push @@ -74,3 +74,10 @@ jobs: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin bashbrew push caddy bashbrew put-shared --single-arch caddy + + - name: Update Docker Hub Description + uses: peter-evans/dockerhub-description@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + repository: productionwentdown/caddy diff --git a/README.md b/README.md index 14636a2..dd10af6 100755 --- a/README.md +++ b/README.md @@ -6,17 +6,16 @@ A tiny <10MB Caddy image compressed with [UPX](https://github.com/upx/upx). - [Docker Hub](https://hub.docker.com/r/productionwentdown/caddy) - [GitHub](https://github.com/productionwentdown/caddy) -# Shared Tags +## Simple Tags New versions are tracked within 4 hours. Currently available versions: * `2.4.6-alpine`, `2-alpine`, `alpine` -Legacy tags available that should not be used: +## Shared Tags -* `2.0.0` -* `1.0.0`, `1.0.1`, `1.0.2`, `1.0.3`, `1.0.4`, `1.0.5`, `1` -* `0.10.*`, `0.11.*` +* `2.4.6`, `2`, `latest` + * `2.4.6-alpine` # Usage diff --git a/update.go b/update.go index 8e8a85f..4803e07 100644 --- a/update.go +++ b/update.go @@ -24,18 +24,17 @@ A tiny <10MB Caddy image compressed with [UPX](https://github.com/upx/upx). - [Docker Hub](https://hub.docker.com/r/productionwentdown/caddy) - [GitHub](https://github.com/productionwentdown/caddy) -# Shared Tags +## Simple Tags New versions are tracked within 4 hours. Currently available versions: -{{range $entry := .Entries}} -* {{range $index, $tag := $entry.Tags}}{{if $index}}, {{end}}` + "`{{$tag}}`" + `{{end}} + +{{range $entry := .Entries}}* {{range $index, $tag := $entry.Tags}}{{if $index}}, {{end}}` + "`{{$tag}}`" + `{{end}} {{end}} -Legacy tags available that should not be used: - -* ` + "`2.0.0`" + ` -* ` + "`1.0.0`, `1.0.1`, `1.0.2`, `1.0.3`, `1.0.4`, `1.0.5`, `1`" + ` -* ` + "`0.10.*`, `0.11.*`" + ` +## Shared Tags +{{range $entry := .Entries}}* {{range $index, $tag := $entry.SharedTags}}{{if $index}}, {{end}}` + "`{{$tag}}`" + `{{end}} + * ` + "`{{index $entry.Tags 0}}`" + ` +{{end}} # Usage See the [official image](https://hub.docker.com/_/caddy) for documentation. This image behaves the same way, except that it is slightly slimmer.