kiwix-zim-updater/.github/workflows/docker.yml
2025-10-18 17:07:53 +00:00

31 lines
751 B
YAML

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '0 0 1 * *' # Once a month
jobs:
build_backend:
name: Build and push backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v3.3.0
with:
context: ./
file: ./docker/Dockerfile
no-cache: true
push: true
tags: ghcr.io/${{ github.repository_owner }}/kiwix-zim-updater:latest