Skip to content

Commit 5edebb4

Browse files
committed
changes
Readme and actions
1 parent 66dcab1 commit 5edebb4

File tree

4 files changed

+60
-22
lines changed

4 files changed

+60
-22
lines changed

.github/workflows/build_docker_images-alpine-10_11.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,3 @@ jobs:
9595
# ghcr.io/${{steps.script.outputs.github_repo}}:10.11-alpine-${{steps.script.outputs.build_date_numeric}}.${{steps.script.outputs.commit_hash}}
9696
# ghcr.io/${{steps.script.outputs.github_repo}}:10.11-alpine
9797
# quay.io/${{steps.script.outputs.redhat_quay_repo}}:10.11-alpine
98-
99-
- name: Docker Hub Description
100-
uses: peter-evans/dockerhub-description@v3
101-
with:
102-
username: ${{ secrets.DOCKER_USERNAME }}
103-
password: ${{ secrets.DOCKER_PASSWORD }}
104-
repository: ${{steps.script.outputs.docker_repo}}
105-
short-description: ${{ github.event.repository.description }}
106-
readme-filepath: README.md

.github/workflows/build_docker_images-debian-10_11.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,3 @@ jobs:
9595
# ghcr.io/${{steps.script.outputs.github_repo}}:10.11-debian-${{steps.script.outputs.build_date_numeric}}.${{steps.script.outputs.commit_hash}}
9696
# ghcr.io/${{steps.script.outputs.github_repo}}:10.11-debian
9797
# quay.io/${{steps.script.outputs.redhat_quay_repo}}:10.11-debian
98-
99-
- name: Docker Hub Description
100-
uses: peter-evans/dockerhub-description@v3
101-
with:
102-
username: ${{ secrets.DOCKER_USERNAME }}
103-
password: ${{ secrets.DOCKER_PASSWORD }}
104-
repository: ${{steps.script.outputs.docker_repo}}
105-
short-description: ${{ github.event.repository.description }}
106-
readme-filepath: README.md
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: 'Update: DockerHub ReadMe'
2+
3+
on:
4+
push:
5+
#branches:
6+
# - 'main'
7+
# - 'master'
8+
paths:
9+
- '.github/workflows/update_dockerhub_readme.yaml'
10+
- 'README.md'
11+
workflow_dispatch:
12+
#schedule:
13+
# - cron: '00 04 01 * *' # At 04:00 on day-of-month 01.
14+
15+
defaults:
16+
run:
17+
shell: bash
18+
19+
jobs:
20+
docker:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Shell-Script
27+
id: script
28+
run: |
29+
BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
30+
BUILD_DATE_NUMERIC="${BUILD_DATE//[^[:digit:]]/}"
31+
COMMIT_HASH=${GITHUB_SHA::7}
32+
GITHUB_REPO=${GITHUB_REPOSITORY,,}
33+
GITHUB_REPO_SHORT=${GITHUB_REPO#*/}
34+
GITHUB_REPO_SHORT=${GITHUB_REPO_SHORT#"docker-"}
35+
DOCKER_REPO=${{ secrets.DOCKER_USERNAME }}/${GITHUB_REPO_SHORT}
36+
REDHAT_QUAY_REPO=${{ secrets.REDHAT_QUAY_USERNAME }}/${GITHUB_REPO_SHORT}
37+
38+
# Set output parameters to action.
39+
echo "build_date=${BUILD_DATE}" >> "$GITHUB_OUTPUT"
40+
echo "build_date_numeric=${BUILD_DATE_NUMERIC}" >> "$GITHUB_OUTPUT"
41+
echo "commit_hash=${COMMIT_HASH}" >> "$GITHUB_OUTPUT"
42+
echo "github_repo=${GITHUB_REPO}" >> "$GITHUB_OUTPUT"
43+
echo "docker_repo=${DOCKER_REPO}" >> "$GITHUB_OUTPUT"
44+
echo "redhat_quay_repo=${REDHAT_QUAY_REPO}" >> "$GITHUB_OUTPUT"
45+
46+
# https://github.com/peter-evans/dockerhub-description
47+
- name: Docker Hub Description
48+
uses: peter-evans/dockerhub-description@v5
49+
with:
50+
username: ${{ secrets.DOCKER_USERNAME }}
51+
password: ${{ secrets.DOCKER_PASSWORD }}
52+
repository: ${{steps.script.outputs.docker_repo}}
53+
short-description: ${{ github.event.repository.description }}
54+
readme-filepath: README.md

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# MariaDB (MySQL fork) - Docker Image for amd64, arm64, arm
22

33
### Supported tags and respective `Dockerfile` links
4-
- [`10.11-alpine` (*Dockerfile*)](https://github.com/Tob1as/docker-mariadb/blob/master/alpine.10_11.Dockerfile) (on AlpineLinux [3.18](https://pkgs.alpinelinux.org/package/v3.18/main/armhf/mariadb))
5-
- [`10.11-debian` (*Dockerfile*)](https://github.com/Tob1as/docker-mariadb/blob/master/ubuntu.10_11.Dockerfile) (on Debian [12 (bookworm)](https://packages.debian.org/bookworm/mariadb-server))
6-
4+
- [`10.11-alpine` (*Dockerfile*)](https://github.com/Tob1as/docker-mariadb/blob/master/alpine.10_11.Dockerfile) (on AlpineLinux [3.20](https://pkgs.alpinelinux.org/package/v3.20/main/armhf/mariadb))
5+
- [`10.11-debian` (*Dockerfile*)](https://github.com/Tob1as/docker-mariadb/blob/master/debian.10_11.Dockerfile) (on Debian [12 (bookworm)](https://packages.debian.org/bookworm/mariadb-server))
6+
77
**Notes**:
8-
- For amd64 and arm64 it is recommended to use the [official images](https://hub.docker.com/_/mariadb) based on Ubuntu.
8+
* For `amd64` and `arm64` it is recommended to use the [official images](https://hub.docker.com/_/mariadb) based on Ubuntu and not these !
99
* How long MariaDB versions are supported (End of Life): https://mariadb.org/about/#mariadb-server-long-term-release-maintenance-periods
1010
Do not use an container image which MariaDB version is no longer supported!
11+
* How long OS (Alpine, Debian, ...) versions are supported (End of Life): https://alpinelinux.org/releases/ and https://wiki.debian.org/DebianReleases
12+
Do not use an container image which OS version is no longer supported!
1113

1214
# What is MariaDB?
1315

0 commit comments

Comments
 (0)