mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
:octocat: Add workflow for releasing Docker Image
This commit is contained in:
parent
4837f35487
commit
f6f6a9fe81
1 changed files with 18 additions and 0 deletions
18
.github/workflows/dockerimage.yml
vendored
Normal file
18
.github/workflows/dockerimage.yml
vendored
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue