Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
RenJiangZhou2163 committed Feb 8, 2025
1 parent a1c0bcf commit a6d527a
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/docling.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: docling

# 触发工作流的事件
on:
push:
push: # 设置为在 push 到 main 分支时触发
branches:
- main
schedule:
Expand All @@ -12,28 +13,33 @@ jobs:
runs-on: ubuntu-latest

steps:
# 拉取当前仓库代码
- name: Checkout code
uses: actions/checkout@v4

# 设置 Docker 构建环境
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Pull and Save Docker images
run: |
git clone https://github.com/DS4SD/docling.git
# - name: Set working directory
# run: |
# pwd
# ls -a
# cd docling
# pwd
# ls -a
# 登录到 Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build
uses: docker/build-push-action@v5
with:
context: ./docling
context: .
file: ./docling/Dockerfile
tags: docling:main
tags: ${{ secrets.DOCKER_USERNAME }}/docling:main
load: true
push: true # 是否推送镜像到 Docker Hub

- name: Save Docker image as file
run: |
Expand Down

0 comments on commit a6d527a

Please sign in to comment.