mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 16:36:27 +00:00
build(docker): add docker build
This commit is contained in:
34
.github/workflows/build-docker.yml
vendored
Normal file
34
.github/workflows/build-docker.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user