Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Docker

Docker #47

Workflow file for this run

name: Docker
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '30 1 1 * *'
workflow_dispatch:
jobs:
mediawiki:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: |
nlpub/mediawiki:latest
ghcr.io/nlpub/mediawiki:latest