Skip to content

Commit fe0face

Browse files
authored
Merge pull request #5 from soulteary/feat/upgrade-and-ghcr
feat: upgrade 6.9.1 and support GHCR
2 parents 126eb9d + ab9160b commit fe0face

6 files changed

Lines changed: 49 additions & 14 deletions

File tree

.github/workflows/build-latest.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ on:
88

99
env:
1010
REGISTRY_IMAGE: soulteary/sqlite-wordpress
11+
GHCR_IMAGE: ghcr.io/soulteary/sqlite-wordpress
1112

1213
jobs:
1314
docker:
1415
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
packages: write
1519
steps:
1620
- name: Checkout
17-
uses: actions/checkout@v4
21+
uses: actions/checkout@v6
1822

1923
- name: Set up QEMU
2024
uses: docker/setup-qemu-action@v3
@@ -28,10 +32,19 @@ jobs:
2832
username: ${{ secrets.DOCKERHUB_USERNAME }}
2933
password: ${{ secrets.DOCKERHUB_TOKEN }}
3034

35+
- name: Login to GHCR
36+
uses: docker/login-action@v3
37+
with:
38+
registry: ghcr.io
39+
username: ${{ github.actor }}
40+
password: ${{ secrets.GITHUB_TOKEN }}
41+
3142
- name: Build and push
32-
uses: docker/build-push-action@v5
43+
uses: docker/build-push-action@v6
3344
with:
3445
context: .
3546
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/arm/v5
3647
push: true
37-
tags: "${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}"
48+
tags: |
49+
${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
50+
${{ env.GHCR_IMAGE }}:${{ github.ref_name }}

.github/workflows/build-version.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ on:
88

99
env:
1010
REGISTRY_IMAGE: soulteary/sqlite-wordpress
11+
GHCR_IMAGE: ghcr.io/soulteary/sqlite-wordpress
1112

1213
jobs:
1314
docker:
1415
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
packages: write
1519
steps:
1620
- name: Checkout
17-
uses: actions/checkout@v4
21+
uses: actions/checkout@v6
1822

1923
- name: Set up QEMU
2024
uses: docker/setup-qemu-action@v3
@@ -28,10 +32,19 @@ jobs:
2832
username: ${{ secrets.DOCKERHUB_USERNAME }}
2933
password: ${{ secrets.DOCKERHUB_TOKEN }}
3034

35+
- name: Login to GHCR
36+
uses: docker/login-action@v3
37+
with:
38+
registry: ghcr.io
39+
username: ${{ github.actor }}
40+
password: ${{ secrets.GITHUB_TOKEN }}
41+
3142
- name: Build and push
32-
uses: docker/build-push-action@v5
43+
uses: docker/build-push-action@v6
3344
with:
3445
context: .
3546
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/arm/v5
3647
push: true
37-
tags: ${{ env.REGISTRY_IMAGE }}
48+
tags: |
49+
${{ env.REGISTRY_IMAGE }}
50+
${{ env.GHCR_IMAGE }}

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM wordpress:6.5.3-php8.3-apache
1+
FROM wordpress:6.9.1-php8.5-apache
22
LABEL org.opencontainers.image.authors="soulteary@gmail.com"
33

44
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
55
ENV WORDPRESS_PREPARE_DIR=/usr/src/wordpress
66

77
# plugin: https://github.com/WordPress/sqlite-database-integration
8-
ENV SQLITE_DATABASE_INTEGRATION_VERSION=2.1.11
8+
ENV SQLITE_DATABASE_INTEGRATION_VERSION=2.2.17
99
# details: https://soulteary.com/2024/04/21/wordpress-sqlite-docker-image-packaging-details.html
1010
RUN curl -L -o sqlite-database-integration.tar.gz "https://github.com/WordPress/sqlite-database-integration/archive/refs/tags/v${SQLITE_DATABASE_INTEGRATION_VERSION}.tar.gz" && \
1111
tar zxvf sqlite-database-integration.tar.gz && \

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2024 soulteary
189+
Copyright 2026 soulteary
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ WordPress with SQLite, ready to use out of the box.
66

77
- Based on [official image](https://hub.docker.com/_/wordpress), Easier and more sustainable solution.
88
- DockerHub Page: https://hub.docker.com/r/soulteary/sqlite-wordpress
9+
- GHCR Page: https://github.com/soulteary/docker-sqlite-wordpress/pkgs/container/sqlite-wordpress
910

1011
## Articles
1112

@@ -17,16 +18,22 @@ WordPress with SQLite, ready to use out of the box.
1718
You can download GitHub's clean and secure docker image using the following command:
1819

1920
```bash
20-
# use latest
21+
# Docker Hub: use latest
2122
docker pull soulteary/sqlite-wordpress
22-
# use specify version
23-
docker pull soulteary/sqlite-wordpress:6.5.3
23+
# Docker Hub: use specify version
24+
docker pull soulteary/sqlite-wordpress:6.9.1
25+
# GHCR: use latest
26+
docker pull ghcr.io/soulteary/sqlite-wordpress:latest
27+
# GHCR: use specify version
28+
docker pull ghcr.io/soulteary/sqlite-wordpress:6.9.1
2429
```
2530

2631
Use the following command to quickly launch the wordpress with port `8080`:
2732

2833
```bash
2934
docker run --rm -it -p 8080:80 -v `pwd`/wordpress:/var/www/html soulteary/sqlite-wordpress
35+
# or use GHCR
36+
docker run --rm -it -p 8080:80 -v `pwd`/wordpress:/var/www/html ghcr.io/soulteary/sqlite-wordpress:latest
3037
```
3138

3239
You can also use docker compose to start wordpress:
@@ -37,7 +44,8 @@ version: '3'
3744
services:
3845

3946
wordpress:
40-
image: soulteary/sqlite-wordpress:6.5.3
47+
image: soulteary/sqlite-wordpress:6.9.1
48+
# or use: ghcr.io/soulteary/sqlite-wordpress:6.9.1
4149
restart: always
4250
ports:
4351
- 8080:80

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ version: '3'
33
services:
44

55
wordpress:
6-
image: soulteary/sqlite-wordpress:6.5.3
6+
image: soulteary/sqlite-wordpress:6.9.1
7+
# or use: ghcr.io/soulteary/sqlite-wordpress:6.9.1
78
restart: always
89
ports:
910
- 8080:80

0 commit comments

Comments
 (0)