build docker

This commit is contained in:
yi_t
2025-04-27 14:58:51 +08:00
parent e50a0c83b6
commit a7cfd102c5
2 changed files with 25 additions and 1 deletions

23
.github/workflows/docker-push.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Docker Push
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Docker image
run: docker build -t ocr:latest .
# 获取docker hub 密码: https://app.docker.com/settings/password
- name: Log in to Docker Hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker image to Docker Hub
run: docker push ocr:latest

3
.gitignore vendored
View File

@@ -1,3 +1,4 @@
.venv
__pycache__
temp/*
temp/*
.vercel