diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..684717c --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -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 diff --git a/mediawiki/Dockerfile b/mediawiki/Dockerfile new file mode 100644 index 0000000..5f8cd38 --- /dev/null +++ b/mediawiki/Dockerfile @@ -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