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 @@ -184,6 +184,10 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4

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

- name: Login to DockerHub
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: docker/login-action@v4.6.0
Expand All @@ -197,11 +201,29 @@ jobs:
context: ${{ matrix.context }}
file: ${{ matrix.dockerfile }}
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
tags: dockette/adminer:${{ matrix.tag }}
tags: |
dockette/adminer:${{ matrix.tag }}
${{ matrix.tag == 'latest' && format('dockette/adminer:{0}', steps.version.outputs.version) || '' }}
platforms: ${{ matrix.platforms }}
cache-from: type=gha
cache-to: type=gha,mode=max

release:
name: "Release"
needs: build
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: build
Expand Down
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ DOCKER_IMAGE=dockette/adminer
DOCKER_PLATFORMS?=linux/amd64
DOCKER_RUN_PORT?=8000
DOCKER_RUN_TAG?=full
VERSION:=$(shell cat VERSION)

build: build-all

Expand Down Expand Up @@ -62,3 +63,13 @@ run-oracle-19: _docker-run-oracle-19
update-versions:
find . -type f -name Dockerfile -exec sed -i '' 's/ENV ADMINER_VERSION=.*/ENV ADMINER_VERSION=${ADMINER_VERSION}/g' {} +
find . -type f -name Dockerfile -exec sed -i '' 's/ENV ADMINER_EDITOR_VERSION=.*/ENV ADMINER_EDITOR_VERSION=${ADMINER_VERSION}/g' {} +

.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 @@ -221,6 +221,11 @@ If the specified theme is not found, the container will list all available theme
ADMINER_VERSION=4.8.1 make update-versions
```

## Release version

The release version is the date in [`VERSION`](VERSION). CI pushes `latest` also as `dockette/adminer:<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