Docker: Add support for arm64 image & autobuild

This commit is contained in:
salevdns
2022-04-21 17:09:59 +02:00
committed by Tienson Qin
parent 192eab6a09
commit 43417c68ed

View File

@@ -3,6 +3,8 @@ name: Build-Docker
on:
workflow_dispatch:
workflow_call:
release:
types: [published]
env:
CLOJURE_VERSION: '1.10.1.727'
@@ -19,16 +21,24 @@ jobs:
fetch-depth: 1
submodules: 'true'
- name: Build Docker
run: |
docker build -t ghcr.io/logseq/logseq-webapp:latest .
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Docker Login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Docker Image
run: docker push ghcr.io/logseq/logseq-webapp:latest
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/${{ github.repository_owner }}/logseq-webapp:latest