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 Github Actions workflow
Date Thu, 12 Dec 2019 21:53:52 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 42a5041  STREAMPIPES-46: Add Github Actions workflow
42a5041 is described below

commit 42a50417ae83a735389a6dd85a88efe79ba59610
Author: Dominik Riemer <riemer@fzi.de>
AuthorDate: Thu Dec 12 22:50:16 2019 +0100

    STREAMPIPES-46: Add Github Actions workflow
---
 .github/workflows/build.yml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..3d39535
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,27 @@
+name: Build and Deploy
+
+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 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: Build Docker Backend Image
+        run: |
+          MVN_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version
| grep -v '\[')
+          BACKEND_IMAGE_NAME = apachestreampipes/backend:$MVN_VERSION
+          docker build --pull -t $BACKEND_IMAGE_NAME ./streampipes-backend/
+      - name: Push to Docker Hub
+        run: docker push $BACKEND_IMAGE_NAME


Mime
View raw message