Files
notebook-tools/.github/workflows/build-docker.yml
Daniel Henry bcb4714778
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 9m24s
Move to .github
Signed-off-by: Daniel Henry <iamdanhenry@gmail.com>
2026-03-31 18:23:28 -05:00

39 lines
1.2 KiB
YAML

name: Build and Publish Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: |
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_USERNAME }}/notebook-tools:${{ gitea.sha }}
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_USERNAME }}/notebook-tools:latest
labels: |
org.opencontainers.image.source=${{ gitea.server_url }}/${{ gitea.repository }}
org.opencontainers.image.description=Notebook tools — Paperless + llama.cpp OCR API
cache-from: type=gha
cache-to: type=gha,mode=max