File tree Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change @@ -214,3 +214,60 @@ services:
214214 privileged : true
215215 commands :
216216 - /usr/local/bin/dockerd-entrypoint.sh dockerd --host "unix:///workspace/docker.sock" --storage-driver overlay2 --log-level error
217+
218+ ---
219+ kind : pipeline
220+ name : wordpress-runtime-5.9
221+
222+ depends_on :
223+ - wordpress-runtime-bedrock
224+
225+ workspace :
226+ base : /workspace
227+ path : src/github.com/bitpoke/stack-runtimes
228+
229+ steps :
230+ - &step
231+ name : setup docker
232+ pull : always
233+ image : docker.io/bitpoke/build:v0.3.0-3.g7069e76
234+ environment : &baseEnv
235+ TAG_SUFFIX : ${DRONE_BRANCH/master/}
236+ TEST_HOSTNAME : docker
237+ commands :
238+ - dockerize -wait unix:///workspace/docker.sock -timeout 10s
239+ - docker info
240+ - make -C wordpress pull-$DRONE_STAGE_NAME
241+
242+ - << : *step
243+ name : build image
244+ pull : default
245+ commands :
246+ - make -C wordpress $DRONE_STAGE_NAME
247+
248+ - << : *step
249+ name : test image
250+ pull : default
251+ commands :
252+ - make -C wordpress test-$DRONE_STAGE_NAME
253+
254+ - << : *step
255+ name : publish
256+ pull : default
257+ environment :
258+ << : *baseEnv
259+ DOCKER_USER :
260+ from_secret : DOCKER_USER
261+ DOCKER_PASSWORD :
262+ from_secret : DOCKER_PASSWORD
263+ commands :
264+ - docker login -u="$DOCKER_USER" -p="$DOCKER_PASSWORD" docker.io
265+ - make -C wordpress push-$DRONE_STAGE_NAME
266+
267+ services :
268+ - name : docker
269+ image : docker:20.10.8-dind
270+ privileged : true
271+ commands :
272+ - /usr/local/bin/dockerd-entrypoint.sh dockerd --host "unix:///workspace/docker.sock" --storage-driver overlay2 --log-level error
273+
Original file line number Diff line number Diff line change 1+ ARG BASE_IMAGE=docker.io/bitpoke/wordpress-runtime:bedrock-php-7.4
2+ FROM ${BASE_IMAGE} as bedrock
3+ ENV WORDPRESS_VERSION=5.9
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 --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
You can’t perform that action at this time.
0 commit comments