File tree Expand file tree Collapse file tree 4 files changed +12
-634
lines changed Expand file tree Collapse file tree 4 files changed +12
-634
lines changed Original file line number Diff line number Diff line change 22! dev-tools
33! extra
44! scripts
5+ ! entrypoint.sh
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ ARG WP_GIT_REF
44ADD https://github.com/WordPress/WordPress.git#${WP_GIT_REF} /wp
55RUN rm -rf /wp/wp-content
66COPY extra/ /wp/
7+ RUN echo "${WP_GIT_REF}" > /wp/wp-content/.version
78
89FROM alpine:3.21.3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c AS build-wptl
910ARG WP_GIT_REF
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ USER_ID=" ${1:- 1000} "
4+ GROUP_ID=" ${2:- 1000} "
5+
6+ if [ ! -f /wp/wp-content/.version ] || [ ! -f /shared/wp-content/.version ] || ! cmp -s /wp/wp-content/.version /shared/wp-content/.version; then
7+ /usr/bin/rsync -ac --delete --chown=" ${USER_ID} :${GROUP_ID} " --include=/wp-content/.version /wp/ /shared/
8+ fi
9+
10+ /usr/bin/rsync -ac --delete --chown=" ${USER_ID} :${GROUP_ID} " /dev-tools/
You can’t perform that action at this time.
0 commit comments