build-docker.yml 982 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: Build-Docker
  2. on:
  3. workflow_dispatch:
  4. workflow_call:
  5. release:
  6. types: [released]
  7. env:
  8. CLOJURE_VERSION: '1.10.1.727'
  9. jobs:
  10. build-docker:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout
  14. uses: actions/checkout@v2
  15. with:
  16. fetch-depth: 1
  17. submodules: 'true'
  18. - name: Set up QEMU
  19. uses: docker/setup-qemu-action@v1
  20. - name: Set up Docker Buildx
  21. id: buildx
  22. uses: docker/setup-buildx-action@v1
  23. - name: Docker Login
  24. uses: docker/login-action@v1
  25. with:
  26. registry: ghcr.io
  27. username: ${{ github.repository_owner }}
  28. password: ${{ secrets.GITHUB_TOKEN }}
  29. - name: Build and push
  30. uses: docker/build-push-action@v2
  31. with:
  32. context: .
  33. platforms: linux/amd64,linux/arm64
  34. push: ${{ github.event_name != 'pull_request' }}
  35. tags: ghcr.io/${{ github.repository_owner }}/logseq-webapp:latest