18 Commits

Author SHA1 Message Date
dependabot[bot]
a329f6bd18 Bump docker/bake-action from 6.9.0 to 6.10.0
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 6.9.0 to 6.10.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/v6.9.0...v6.10.0)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: 6.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-27 22:03:46 +00:00
cf83bd7ef7 Add check for theme's style.css file 2025-10-07 22:01:33 +02:00
a554422633 Merge pull request #61 from N0rthernL1ghts/dependabot/github_actions/lewagon/wait-on-check-action-1.4.1
Bump lewagon/wait-on-check-action from 1.4.0 to 1.4.1
2025-10-07 21:59:29 +02:00
d3141d20f8 Merge pull request #60 from N0rthernL1ghts/dependabot/github_actions/docker/bake-action-6.9.0
Bump docker/bake-action from 6.8.0 to 6.9.0
2025-10-07 21:59:11 +02:00
dependabot[bot]
90b952798d Bump lewagon/wait-on-check-action from 1.4.0 to 1.4.1
Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/lewagon/wait-on-check-action/releases)
- [Changelog](https://github.com/lewagon/wait-on-check-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lewagon/wait-on-check-action/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: lewagon/wait-on-check-action
  dependency-version: 1.4.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 22:04:35 +00:00
dependabot[bot]
3bd33afb64 Bump docker/bake-action from 6.8.0 to 6.9.0
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 6.8.0 to 6.9.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/v6.8.0...v6.9.0)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: 6.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-20 22:55:32 +00:00
2e345410fc Add missing header 2025-08-15 20:51:07 +02:00
bca1e03d59 Update WordPress 6.8.1 -> 6.8.2 2025-08-15 18:36:17 +02:00
0e38adade4 Update WordPress 6.8.0 -> 6.8.1 2025-08-15 18:32:32 +02:00
912b0e666c Update WordPress 6.7.2 -> 6.8.0 2025-08-15 18:28:18 +02:00
0475842323 Fix missing cron build for WordPress 6.7.2 2025-08-15 18:26:15 +02:00
0aa2eed313 Increase PHP memory limit 2025-08-15 18:19:24 +02:00
f1f1606a71 Merge pull request #59 from N0rthernL1ghts/dependabot/github_actions/actions/checkout-5
Bump actions/checkout from 4 to 5
2025-08-12 12:39:56 +02:00
dependabot[bot]
b48a8b8be3 Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 06:18:03 +00:00
a06876919a Merge pull request #57 from N0rthernL1ghts/dependabot/github_actions/docker/bake-action-6.8.0
Bump docker/bake-action from 6.5.0 to 6.8.0
2025-08-11 11:55:42 +02:00
6b04af76de Merge pull request #58 from N0rthernL1ghts/dependabot/github_actions/lewagon/wait-on-check-action-1.4.0
Bump lewagon/wait-on-check-action from 1.3.4 to 1.4.0
2025-08-11 11:43:18 +02:00
dependabot[bot]
9f4e8932b1 Bump lewagon/wait-on-check-action from 1.3.4 to 1.4.0
Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.3.4 to 1.4.0.
- [Release notes](https://github.com/lewagon/wait-on-check-action/releases)
- [Changelog](https://github.com/lewagon/wait-on-check-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lewagon/wait-on-check-action/compare/v1.3.4...v1.4.0)

---
updated-dependencies:
- dependency-name: lewagon/wait-on-check-action
  dependency-version: 1.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-27 22:54:55 +00:00
dependabot[bot]
ef51ddfea9 Bump docker/bake-action from 6.5.0 to 6.8.0
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 6.5.0 to 6.8.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/v6.5.0...v6.8.0)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: 6.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-27 22:43:59 +00:00
7 changed files with 83 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ jobs:
steps:
-
name: checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
@@ -49,7 +49,7 @@ jobs:
password: ${{secrets.PAT_TOKEN}}
-
name: Await successful tests
uses: lewagon/wait-on-check-action@v1.3.4
uses: lewagon/wait-on-check-action@v1.4.1
with:
ref: ${{ github.sha }}
check-name: tests
@@ -57,12 +57,12 @@ jobs:
wait-interval: 20
-
name: Build and push WordPress Web image
uses: docker/bake-action@v6.5.0
uses: docker/bake-action@v6.10.0
with:
files: build/docker-bake.hcl
push: true
- name: Build and push WordPress Cron image
uses: docker/bake-action@v6.5.0
uses: docker/bake-action@v6.10.0
with:
files: build/docker-bake-cron.hcl
push: true

View File

@@ -12,7 +12,7 @@ jobs:
steps:
-
name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v5
-
name: "Set up Docker Buildx"

View File

@@ -68,12 +68,14 @@ ghcr.io/n0rthernl1ghts/wordpress-cron:6.6.2
Replace version number with desired version, eg. 6.6.1.
### Cron
#### Cron
Cron is supported out of the box in `ghcr.io/n0rthernl1ghts/wordpress` image, but the best practice is to use dedicated image `ghcr.io/n0rthernl1ghts/wordpress-cron` for this purpose. <br/>
This image is optimized for running cron jobs, and is stripped of unnecessary components.
Running cron in the main image is not recommended, as it can cause performance issues, and can lead to unexpected behavior.
#### Plugin installer
```
WARNING: This feature is experimental and can fail. Proceed with caution
```

View File

@@ -19,7 +19,11 @@ group "default" {
"6_6_1",
"6_6_2",
"6_7_0",
"6_7_1"
"6_7_1",
"6_7_2",
"6_8_0",
"6_8_1",
"6_8_2"
]
}
@@ -244,6 +248,38 @@ target "6_7_1" {
inherits = ["build-dockerfile", "build-platforms", "build-common"]
cache-from = get-cache-from("6.7.1")
cache-to = get-cache-to("6.7.1")
tags = get-tags("6.7.1", ["6", "6.7", "latest"])
tags = get-tags("6.7.1", [])
args = get-args("6.7.1")
}
target "6_7_2" {
inherits = ["build-dockerfile", "build-platforms", "build-common"]
cache-from = get-cache-from("6.7.2")
cache-to = get-cache-to("6.7.2")
tags = get-tags("6.7.2", ["6.7"])
args = get-args("6.7.2")
}
target "6_8_0" {
inherits = ["build-dockerfile", "build-platforms", "build-common"]
cache-from = get-cache-from("6.8.0")
cache-to = get-cache-to("6.8.0")
tags = get-tags("6.8.0", [])
args = get-args("6.8.0")
}
target "6_8_1" {
inherits = ["build-dockerfile", "build-platforms", "build-common"]
cache-from = get-cache-from("6.8.1")
cache-to = get-cache-to("6.8.1")
tags = get-tags("6.8.1", [])
args = get-args("6.8.1")
}
target "6_8_2" {
inherits = ["build-dockerfile", "build-platforms", "build-common"]
cache-from = get-cache-from("6.8.2")
cache-to = get-cache-to("6.8.2")
tags = get-tags("6.8.2", ["6", "6.8", "latest"])
args = get-args("6.8.2")
}

View File

@@ -20,7 +20,10 @@ group "default" {
"6_6_2",
"6_7_0",
"6_7_1",
"6_7_2"
"6_7_2",
"6_8_0",
"6_8_1",
"6_8_2"
]
}
@@ -253,6 +256,31 @@ target "6_7_2" {
inherits = ["build-dockerfile", "build-platforms", "build-common"]
cache-from = get-cache-from("6.7.2")
cache-to = get-cache-to("6.7.2")
tags = get-tags("6.7.2", ["6", "6.7", "latest"])
tags = get-tags("6.7.2", ["6.7"])
args = get-args("6.7.2", "6.5.0")
}
target "6_8_0" {
inherits = ["build-dockerfile", "build-platforms", "build-common"]
cache-from = get-cache-from("6.8.0")
cache-to = get-cache-to("6.8.0")
tags = get-tags("6.8.0", [])
args = get-args("6.8.0", "6.5.0")
}
target "6_8_1" {
inherits = ["build-dockerfile", "build-platforms", "build-common"]
cache-from = get-cache-from("6.8.1")
cache-to = get-cache-to("6.8.1")
tags = get-tags("6.8.1", [])
args = get-args("6.8.1", "6.5.0")
}
target "6_8_2" {
inherits = ["build-dockerfile", "build-platforms", "build-common"]
cache-from = get-cache-from("6.8.2")
cache-to = get-cache-to("6.8.2")
tags = get-tags("6.8.2", ["6", "6.8", "latest"])
args = get-args("6.8.2", "6.5.0")
}

View File

@@ -6,7 +6,7 @@ echo "> Downloading WordPress ${WP_VERSION} ..."
WP_SHORT_VERSION=$(echo "${WP_VERSION}" | sed --expression='s/.0$//g');
echo "> Short Version: ${WP_SHORT_VERSION}"
wp --allow-root --path="/tmp" core download --locale="${WP_LOCALE}" --version="${WP_SHORT_VERSION}"
php -d "memory_limit=512M" /usr/local/bin/wp --allow-root --path="/tmp" core download --locale="${WP_LOCALE}" --version="${WP_SHORT_VERSION}"
if [ ! -f "/tmp/wp-admin/update-core.php" ]; then
echo "X WordPress download failed"

View File

@@ -48,11 +48,16 @@ check() {
local themeSlug="${1:?check: THEME_SLUG is required}"
local themePath="${themesDir}/${themeSlug}"
# Check if theme directory exists
# Check if theme directory exists - If it doesn't we know immediately that the theme is not installed
if [ ! -d "${themePath}" ]; then
return 1
fi
# Check if theme style.css exists - if yes, theme is probably installed successfully
if [ -f "${themePath}/style.css" ]; then
return 0
fi
# Check if theme theme.json exists - if yes, theme is probably installed successfully
if [ -f "${themePath}/theme.json" ]; then
return 0