Skip to content

Commit 2646115

Browse files
committed
bump script, update base image to WP v6
1 parent 5ddd2b9 commit 2646115

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This version is automatically updated by the wordpress:bump script
44
# but can also be manually updated for tagged betas and release candidates
55
# Manual updates also must change wp-version.json
6-
FROM wordpress:beta-6.0-RC1-php8.0-apache
6+
FROM wordpress:6.0-php8.0-apache
77

88
LABEL version="0.10.4"
99

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<h4>
44
Version 0.10.4
5-
- WordPress beta-6.0-RC1
5+
<!-- WPVERSION -->- WordPress 6.0
66
</h4>
77

88
[![dockeri.co](https://dockeri.co/image/ideasonpurpose/wordpress)](https://hub.docker.com/r/ideasonpurpose/wordpress)<br>
@@ -12,7 +12,7 @@ Version 0.10.4
1212

1313
This project provides local development environments for fast iteration of existing WordPress websites. This includes pre-configured Docker-based MySQL and PHP servers, our [Docker-Build toolchain][docker-build], [Xdebug](https://xdebug.org/), [ImageMagick](http://www.imagemagick.org/) and a number of helper scripts.
1414

15-
The project builds on the official WordPress docker image, currently **[v6.0-RC1](https://hub.docker.com/_/wordpress)**
15+
The project builds on the official WordPress docker image, currently **[v6.0](https://hub.docker.com/_/wordpress)**
1616

1717
## Getting Started
1818

@@ -167,6 +167,12 @@ npm run wp-cli wp core update https://wordpress.org/wordpress-5.8.1-RC1.zip
167167

168168
Versions can be rolled back by removing the docker `*_wp` volume.
169169

170+
#### Bumping Image Versions
171+
172+
The `npm run bump` script will query the WordPress releases API and DockerHub, then update the docker image and readme to the latest WordPress image.
173+
174+
To update to a pre-release image, enter a valid DockerHub tag into the wp-version.json file.
175+
170176
### Plugin Development
171177

172178
Projects often rely on plugins which are developed in parallel. Two placeholder environment variables can be used to directly mount plugins into the WordPress environment. This enables better version control and dependency management since the nested and .gitignored **wp-content/plugins** directory often conflicts with the parent theme.

bin/bump-wordpress.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ echo -e "✏️ Updating ${GOLD}Dockerfile${RESET} to ${CYAN}wordpress:${WP_LA
5656
sed -i "s/wordpress:.*-php8/wordpress:${WP_LATEST}-php8/" /app/Dockerfile
5757

5858
echo -e "✏️ Updating ${GOLD}README.md${RESET} to ${CYAN}v${WP_LATEST}${RESET}"
59-
sed -E -i "s/currently\s+\*\*\[v[0-9.]+\]/currently **[v${WP_LATEST}]/" /app/README.md
60-
sed -E -i "s/WordPress\s+[0-9.]+/WordPress ${WP_LATEST}/" /app/README.md
59+
sed -E -i "s/currently\s+\*\*\[v[^\\]+\]/currently **[v${WP_LATEST}]/" /app/README.md
60+
sed -E -i "s/^<\!-- WPVERSION -->- WordPress.+$/<\!-- WPVERSION -->- WordPress ${WP_LATEST}/" /app/README.md
6161

6262
echo -e "✏️ Updating ${GOLD}docker-compose.yml${RESET} (boilerplate) to ${CYAN}wordpress:${WP_LATEST}${RESET}"
6363
sed -E -i "s/ideasonpurpose\/wordpress:[0-9.]+/ideasonpurpose\/wordpress:${WP_LATEST}/" /app/boilerplate-tooling/docker-compose.yml

boilerplate-tooling/docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
depends_on:
2727
- db
2828
# image: ideasonpurpose/wordpress:dev
29-
image: ideasonpurpose/wordpress:5.9.3
29+
image: ideasonpurpose/wordpress:6.0
3030
restart: always
3131
volumes:
3232
- wp_data:/var/www/html
@@ -74,7 +74,7 @@ services:
7474
- db
7575
- wordpress
7676
# image: ideasonpurpose/wordpress:dev
77-
image: ideasonpurpose/wordpress:5.9.3
77+
image: ideasonpurpose/wordpress:6.0
7878
profiles: ["utility"]
7979
user: www-data
8080
volumes:
@@ -234,7 +234,7 @@ services:
234234
# Project info: https://github.com/ideasonpurpose/docker-wordpress-dev
235235
repair-permissions:
236236
# image: ideasonpurpose/wordpress:dev
237-
image: ideasonpurpose/wordpress:5.9.3
237+
image: ideasonpurpose/wordpress:6.0
238238
profiles: ["utility"]
239239
volumes:
240240
- .:/usr/src/site
@@ -248,7 +248,7 @@ services:
248248
# Project info: https://github.com/ideasonpurpose/docker-wordpress-dev
249249
pull:
250250
# image: ideasonpurpose/wordpress:dev
251-
image: ideasonpurpose/wordpress:5.9.3
251+
image: ideasonpurpose/wordpress:6.0
252252
profiles: ["utility"]
253253
volumes:
254254
- .:/usr/src/site

wp-version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"wordpress": "beta-6.0-RC1"
2+
"wordpress": "6.0"
33
}

0 commit comments

Comments
 (0)