streampipes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rie...@apache.org
Subject [incubator-streampipes-extensions] branch dev updated: STREAMPIPES-46: Add initial Github Actions workflow to extensions module
Date Fri, 13 Dec 2019 18:14:14 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-extensions.git


The following commit(s) were added to refs/heads/dev by this push:
     new a72f45b  STREAMPIPES-46: Add initial Github Actions workflow to extensions module
     new 1080a85  Merge branch 'dev' of github.com:apache/incubator-streampipes-extensions
into dev
a72f45b is described below

commit a72f45bbceb7254571b6b6872878198ceed20ae0
Author: Dominik Riemer <riemer@fzi.de>
AuthorDate: Fri Dec 13 19:12:33 2019 +0100

    STREAMPIPES-46: Add initial Github Actions workflow to extensions module
---
 .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..7001a49
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,30 @@
+name: Build and Deploy Extensions
+
+on:
+  push:
+    branches:
+      - dev
+jobs:
+  build-and-push-to-docker:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v1
+      - name: Set up JDK 1.8
+        uses: actions/setup-java@v1
+        with:
+          java-version: 1.8
+      - name: Build Extensions with Maven
+        run: mvn clean package javadoc:aggregate
+      - name: Login to Docker Hub
+        run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u ${{ secrets.DOCKERHUB_USER
}} --password-stdin
+      - name: Extract current snapshot version
+        run: echo "::set-env name=MVN_VERSION::$(mvn help:evaluate -Dexpression=project.version
-q -DforceStdout)"
+      - name: Build and Push Docker Image pipeline-elements-all-jvm
+        run: |
+          echo "${{env.MVN_VERSION}}"
+          COMPONENT_NAME=pipeline-elements-all-jvm
+          IMAGE_NAME=apachestreampipes/$COMPONENT_NAME:$MVN_VERSION
+          echo BIMAGE_NAME=$IMAGE_NAME
+          docker build --pull -t $IMAGE_NAME ./streampipes-$COMPONENT_NAME/
+          docker push $IMAGE_NAME


Mime
View raw message