build(docker): add docker build

This commit is contained in:
Andelf
2021-12-27 13:53:28 +08:00
committed by Tienson Qin
parent 297e679bd8
commit 9acafb2745
3 changed files with 47 additions and 45 deletions

34
.github/workflows/build-docker.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Build-Docker
on:
workflow_dispatch:
workflow_call:
env:
CLOJURE_VERSION: '1.10.1.727'
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
submodules: 'true'
- name: Build Docker
run: |
docker build -t ghcr.io/logseq/logseq-webapp:latest .
- name: Docker Login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Docker Image
run: docker push ghcr.io/logseq/logseq-webapp:latest