Skip to content

Commit 922c3cc

Browse files
committed
Add build for WordPress 6.5 with PHP 8.3
1 parent 4cb22b0 commit 922c3cc

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

.drone.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,60 @@ steps:
471471
- /usr/local/bin/setup-credentials-helper.sh
472472
- make -C wordpress push-$DRONE_STAGE_NAME
473473

474+
services:
475+
- name: docker
476+
image: docker:20.10.24-dind-rootless
477+
environment:
478+
DOCKER_TLS_CERTDIR: ""
479+
---
480+
kind: pipeline
481+
name: wordpress-runtime-6.5-php-8.3
482+
483+
depends_on:
484+
- wordpress-runtime-bedrock-php-8.3
485+
486+
workspace:
487+
base: /workspace
488+
path: src/github.com/bitpoke/stack-runtimes
489+
490+
steps:
491+
- &step
492+
name: setup docker
493+
pull: always
494+
image: docker.io/bitpoke/build:v0.8.0
495+
environment: &baseEnv
496+
TAG_SUFFIX: ${DRONE_BRANCH/master/}
497+
TEST_HOSTNAME: docker
498+
DOCKER_HOST: tcp://docker:2375
499+
commands:
500+
- dockerize -wait http://docker:2375/_ping -timeout 30s
501+
- docker info
502+
- make -C wordpress pull-$DRONE_STAGE_NAME
503+
504+
- <<: *step
505+
name: build image
506+
pull: default
507+
commands:
508+
- make -C wordpress $DRONE_STAGE_NAME
509+
510+
- <<: *step
511+
name: test image
512+
pull: default
513+
commands:
514+
- make -C wordpress test-$DRONE_STAGE_NAME
515+
516+
- <<: *step
517+
name: publish
518+
pull: default
519+
environment:
520+
<<: *baseEnv
521+
DOCKER_USERNAME: bitpokebot
522+
DOCKER_PASSWORD:
523+
from_secret: DOCKER_PASSWORD
524+
commands:
525+
- /usr/local/bin/setup-credentials-helper.sh
526+
- make -C wordpress push-$DRONE_STAGE_NAME
527+
474528
services:
475529
- name: docker
476530
image: docker:20.10.24-dind-rootless

wordpress/Dockerfile-6.5-php-8.3

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ARG BASE_IMAGE=docker.io/bitpoke/wordpress-runtime:bedrock-php-8.3
2+
FROM ${BASE_IMAGE} as bedrock
3+
ENV WORDPRESS_VERSION=6.5
4+
ENV WP_CONTENT_DIR=${DOCUMENT_ROOT}/wp-content
5+
ENV STACK_MEDIA_PATH=/wp-content/uploads
6+
RUN set -ex \
7+
&& wp core download --skip-content --path=web/wp --version=${WORDPRESS_VERSION} \
8+
&& cp /usr/local/docker/webroot/* /app/web/
9+
ONBUILD COPY --chown=www-data:www-data config /app/config
10+
ONBUILD COPY --chown=www-data:www-data wp-content /app/web/wp-content

0 commit comments

Comments
 (0)