Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v7

- name: Read VERSION
id: version
run: echo "version=$(cat VERSION)" >> "$GITHUB_OUTPUT"

- name: Login to DockerHub
uses: docker/login-action@v4
with:
Expand All @@ -49,9 +53,27 @@ jobs:
with:
context: ${{ matrix.context }}
push: true
tags: dockette/rendertron:${{ matrix.tag }}
tags: |
dockette/rendertron:${{ matrix.tag }}
${{ matrix.tag == 'latest' && format('dockette/rendertron:{0}', steps.version.outputs.version) || '' }}
platforms: linux/amd64 # linux/arm64

release:
name: "Release"
needs: docker
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v7

- name: Create release
env:
GH_TOKEN: ${{ github.token }}
run: gh release view "$(cat VERSION)" || gh release create "$(cat VERSION)" --generate-notes

docs:
name: "Docs"
needs: docker
Expand Down
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
VERSION:=$(shell cat VERSION)

build-rendertron:
docker build -t dockette/rendertron ./rendertron

Expand Down Expand Up @@ -32,3 +34,13 @@ run-tracer:
-e TRACER_SRC_SITEMAP_1=https://example.com/sitemaps/pages.xml \
-e TRACER_SRC_SITEMAP_2=https://example.com/sitemaps/pages2.xml \
dockette/rendertron:tracer

.PHONY: version
version:
@echo ${VERSION}

.PHONY: release
release:
@date -u +%Y.%m.%d > VERSION
@echo "VERSION: ${VERSION} -> $$(cat VERSION)"
@echo "next: git commit -am \"Release: $$(cat VERSION)\" && git push"
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ docker run -it --rm -p 3000:3000 dockette/rendertron

![Screenshot](.docs/screenshot.png)

## Versions

The release version is the date in [`VERSION`](VERSION). CI pushes `latest` also as `dockette/rendertron:<VERSION>`.
To release, run `make release`, commit and push to `master`.

## Maintenance

See [how to contribute](https://github.com/dockette/.github/blob/master/CONTRIBUTING.md) to this package. Consider to [support](https://github.com/sponsors/f3l1x) **f3l1x**. Thank you for using this package.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026.10.23
Loading