add dockerfile and build script
Some checks failed
Docker Build / Build and Push Images (push) Failing after 29s

This commit is contained in:
Seaswimmer 2024-07-30 14:55:15 -04:00
parent ab8d165262
commit 5b7562f244
Signed by: cswimr
GPG key ID: 3813315477F26F82
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,29 @@
name: Docker Build
on:
push:
branches:
- master
workflow_dispatch:
jobs:
Build and Push Images:
runs-on: docker
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.COASTALCOMMITSTOKEN }}
- name: Login to CoastalCommits
uses: actions/docker-login@v3
with:
registry: www.coastalcommits.com
username: Seaswimmer
password: ${{ secrets.COASTALCOMMITSTOKEN }}
- name: Build and push GalacticFactory image
uses: actions/docker-build-push@v5
with:
context: .
file: ./mediawiki/Dockerfile
push: true
tags: www.coastalcommits.com/zenith/mediawiki:latest

25
mediawiki/Dockerfile Normal file
View file

@ -0,0 +1,25 @@
FROM mediawiki:1.42.1
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
https://gerrit.wikimedia.org/r/p/mediawiki/extensions/TemplateData \
/var/www/html/extensions/TemplateData
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
https://gerrit.wikimedia.org/r/p/mediawiki/extensions/MobileFrontend \
/var/www/html/extensions/MobileFrontend
RUN git clone --depth 1 \
https://gitlab.com/hydrawiki/extensions/EmbedVideo.git \
/var/www/html/extensions/EmbedVideo
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Elastica \
/var/www/html/extensions/Elastica
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
https://gerrit.wikimedia.org/r/p/mediawiki/extensions/CirrusSearch \
/var/www/html/extensions/CirrusSearch
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
https://gerrit.wikimedia.org/r/p/mediawiki/extensions/ConfirmEdit \
/var/www/html/extensions/ConfirmEdit