Skip to content

Commit

Permalink
ci: cron
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Apr 8, 2024
1 parent 3cbbaa4 commit b80e88a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cron-docker .yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: AutoRead Docker Image Push
name: Cron AutoRead Docker Image Push

on:
push:
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sudo apt-get install -y wget unzip fontconfig locales gconf-service libasound2 l

## 使用方法四:docker 定时运行

克隆仓库,修改.env 或者在`docker-compose.yml`里面设置环境变量,然后运行
克隆仓库,`docker-compose.yml`里面设置环境变量,然后运行

```sh
docker-compose up -d
Expand All @@ -54,3 +54,10 @@ sudo apt-get install -y wget unzip fontconfig locales gconf-service libasound2 l
```sh
docker-compose logs -f
```

定时运行(目前存在问题)

```sh
docker-compose -f cron-docker-compose.yml up -d

```
3 changes: 1 addition & 2 deletions cron-docker-compose copy.yml → cron-docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
version: "3.8" # 使用 Docker Compose 文件版本 3.8,根
据需要可以更改
version: "3.8" # 使用 Docker Compose 文件版本 3.8,根据需要可以更改
services:
autoread:
image: 14790897/cron-auto-read:latest
Expand Down

0 comments on commit b80e88a

Please sign in to comment.