Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:octocat: Add workflow for releasing Docker Image

Liang Dingf6f6a9fe8183
diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml
new file mode 100644
index 0000000000..f2927bf8af
--- /dev/null
+++ b/.github/workflows/dockerimage.yml
@@ -0,0 +1,18 @@
+name: Release Docker Image
+on:
+ push:
+ branches:
+ - master
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ #ref: '70e4c2c0cb2f1c2f3d1c76de99a3e7593e3d7cae'
+ submodules: true
+ - name: Build the Docker image
+ run: |
+ docker login --username=${{ secrets.DOCKER_HUB_USER }} --password=${{ secrets.DOCKER_HUB_PWD }}
+ docker build -t b3log/siyuan:latest -t b3log/siyuan:v2.0.13 .
+ docker push b3log/siyuan -a