mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
don't build front end with docker
This commit is contained in:
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@@ -72,17 +72,18 @@ jobs:
|
||||
with:
|
||||
node-version: '15'
|
||||
- name: build
|
||||
run: |
|
||||
cd src-ui/
|
||||
npm install -g @angular/cli
|
||||
npm install
|
||||
ng build --prod
|
||||
run: ./build-frontend.sh
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: frontend-compiled
|
||||
path: src/documents/static/frontend/
|
||||
|
||||
# build and push image to docker hub.
|
||||
build-docker-image:
|
||||
if: github.event_name == 'push' && (github.ref == 'refs/heads/travis-multiarch-builds' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || github.ref == 'refs/tags/ng-*')
|
||||
runs-on: ubuntu-latest
|
||||
# needs: tests
|
||||
needs: frontend
|
||||
steps:
|
||||
-
|
||||
name: Prepare
|
||||
@@ -99,6 +100,11 @@ jobs:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: frontend-compiled
|
||||
path: src/documents/static/frontend/
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
@@ -125,7 +131,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||
platforms: linux/amd64 # ,linux/arm/v7,linux/arm64
|
||||
push: true
|
||||
tags: jonaswinkler/paperless-ng:${{ steps.prepare.outputs.version }}
|
||||
cache-from: type=local,src=/tmp/.buildx-cache
|
||||
|
Reference in New Issue
Block a user