Compare commits

..

No commits in common. "ea5d2b5f17464681605138c1baadae79976e7a1c" and "e849419273a02ca700267a60cd2dfff576ff114b" have entirely different histories.

2 changed files with 10 additions and 37 deletions

View file

@ -1,25 +0,0 @@
when:
- event: push
branch: main
path:
- "mediawiki/**"
- ".woodpecker/mediawiki.yaml"
- event: tag
ref: "refs/tags/mediawiki/*"
steps:
- name: build
image: quay.io/buildah/stable
commands:
- buildah build --manifest dev.ccchb.de/ccchb/oci-images/mediawiki keycloak/
- buildah manifest push --all dev.ccchb.de/ccchb/oci-images/mediawiki oci-archive:/woodpecker/image.tar
privileged: true
- name: push
image: quay.io/skopeo/stable
commands:
- "skopeo copy --dest-creds ccchb:$${FORGEJO_API_TOKEN} oci-archive:/woodpecker/image.tar docker://dev.ccchb.de/ccchb/oci-images/mediawiki:$${CI_COMMIT_TAG##mediawiki/}"
- "skopeo copy --dest-creds ccchb:$${FORGEJO_API_TOKEN} oci-archive:/woodpecker/image.tar docker://dev.ccchb.de/ccchb/oci-images/mediawiki:latest"
secrets:
- FORGEJO_API_TOKEN
when:
event: tag

View file

@ -2,19 +2,17 @@ FROM alpine AS builder
WORKDIR /usr/src WORKDIR /usr/src
RUN apk update && apk add git
ADD https://releases.wikimedia.org/mediawiki/1.42/mediawiki-1.42.3.tar.gz . ADD https://releases.wikimedia.org/mediawiki/1.42/mediawiki-1.42.3.tar.gz .
RUN tar -xzf mediawiki-1.42.3.tar.gz RUN tar -xzf mediawiki-1.42.3.tar.gz
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend; \ ADD https://extdist.wmflabs.org/dist/extensions/MobileFrontend-REL1_42-8a4ecb7.tar.gz .
rm -rf MobileFrontend/.git RUN tar -xzf MobileFrontend-REL1_42-8a4ecb7.tar.gz
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/PluggableAuth; \ ADD https://extdist.wmflabs.org/dist/extensions/PluggableAuth-REL1_42-b35addc.tar.gz .
rm -rf PluggableAuth/.git RUN tar -xzf PluggableAuth-REL1_42-b35addc.tar.gz
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/OpenIDConnect; \ ADD https://extdist.wmflabs.org/dist/extensions/OpenIDConnect-REL1_42-83024de.tar.gz .
rm -rf OpenIDConnect/.git RUN tar -xzf OpenIDConnect-REL1_42-83024de.tar.gz
FROM docker.io/library/unit:php8.2 FROM docker.io/library/unit:php8.2
@ -23,10 +21,10 @@ WORKDIR /var/www/html
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
libicu-dev \ libicu-dev \
&& docker-php-ext-configure intl \ && docker-php-ext-configure intl \
&& docker-php-ext-install -j$(nproc) intl \ && docker-php-ext-install -j$(nproc) intl
&& docker-php-ext-install -j$(nproc) mysqli \ RUN docker-php-ext-configure mysqli \
&& apt-get install -y imagemagick \ && docker-php-ext-install -j$(nproc) mysqli
&& rm -rf /var/lib/apt/lists/* RUN apt-get install -y imagemagick
COPY --from=builder --chown=unit:unit /usr/src/mediawiki-1.42.3 w/ COPY --from=builder --chown=unit:unit /usr/src/mediawiki-1.42.3 w/
COPY --from=builder --chown=unit:unit /usr/src/MobileFrontend w/extensions/MobileFrontend COPY --from=builder --chown=unit:unit /usr/src/MobileFrontend w/extensions/MobileFrontend