mirror of
https://github.com/jojo2357/kiwix-zim-updater.git
synced 2026-12-05 14:19:55 -05:00
31 lines
751 B
YAML
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
|