streampipes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rie...@apache.org
Subject [incubator-streampipes] branch dev updated: STREAMPIPES-46: Add stage to push UI image
Date Thu, 12 Dec 2019 22:37:42 GMT
This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 4e807b9  STREAMPIPES-46: Add stage to push UI image
4e807b9 is described below

commit 4e807b92f17844b76c83109964cc7dc907e545f8
Author: Dominik Riemer <riemer@fzi.de>
AuthorDate: Thu Dec 12 23:37:29 2019 +0100

    STREAMPIPES-46: Add stage to push UI image
---
 .github/workflows/build.yml | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index afc2c76..a0e39b8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,6 +14,10 @@ jobs:
         uses: actions/setup-java@v1
         with:
           java-version: 1.8
+      - name: Set up Node
+        uses: actions/setup-node@v1
+        with:
+          node-version: '10.x'
       - name: Build with Maven
         run: mvn clean package javadoc:aggregate
       - name: Login to Docker Hub
@@ -26,9 +30,22 @@ jobs:
           echo BACKEND_IMAGE_NAME=$BACKEND_IMAGE_NAME
           docker build --pull -t $BACKEND_IMAGE_NAME ./streampipes-backend/
           docker push $BACKEND_IMAGE_NAME
-      - name: Push and Push Docker Connect Image
+      - name: Build and Push Docker Connect Image
         run: |
           MVN_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
           CONNECT_IMAGE_NAME=apachestreampipes/streampipes-connect-container:$MVN_VERSION
           docker build --pull -t $CONNECT_IMAGE_NAME ./streampipes-connect-container-master/
           docker push $CONNECT_IMAGE_NAME
+      - name: Build UI
+        working-directory: ./ui
+        run: |
+          NODE_PATH=/cache/node_modules
+          NODE_OPTIONS=--max_old_space_size=4096
+          npm install --unsafe-perm
+          npm run build
+      - name: Build and Push Docker UI Image
+        run: |
+          MVN_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
+          UI_IMAGE_NAME=apachestreampipes/ui:$MVN_VERSION
+          docker build --no-cache --pull -t $UI_IMAGE_NAME ./ui
+          docker push $UI_IMAGE_NAME


Mime
View raw message