Add ghcr.io
This commit is contained in:
1 parent
b91822d065
commit
b65d6b36ca
2 files changed
+5
-5
No files matched your search
@@ -51,11 +51,11 @@ jobs:
|
||||
run: docker build . --file Dockerfile --tag $IMAGE_NAME
|
||||
|
||||
- name: Log into registry
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
|
||||
IMAGE_ID=ghcr.io/${{ github.repository }}/$IMAGE_NAME
|
||||
|
||||
# Change all uppercase to lowercase
|
||||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||
|
||||
@@ -33,7 +33,7 @@ Linux下以daemon进程启动,录像和日志文件保存在执行目录下,
|
||||
### 方式一
|
||||
```bash
|
||||
vim /host/path/config.yaml
|
||||
docker run --name biliup -v /host/path:/opt -d docker.pkg.github.com/forgqi/bilibiliupload/caution
|
||||
docker run --name biliup -v /host/path:/opt -d ghcr.io/forgqi/bilibiliupload/caution
|
||||
```
|
||||
### 方式二
|
||||
```bash
|
||||
@@ -49,8 +49,8 @@ sudo docker exec -it imageId /bin/bash
|
||||
|
||||
## 3. 源码使用
|
||||
* 下载源码: git clone https://github.com/ForgQi/bilibiliupload.git
|
||||
* 安装: `pip3 install -e .`
|
||||
* 启动: `biliup`
|
||||
* 安装: `pip3 install -e .` 或者 `pip3 install -r requirements.txt`
|
||||
* 启动: `python3 -m biliup`
|
||||
|
||||
## EMBEDDING BILIUP
|
||||
如果你不想使用完全自动托管的功能,而仅仅只是想嵌入biliup作为一个库来使用这里有两个例子可以作为参考
|
||||
|
||||
Reference in new issue
Block a user