You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by zt...@apache.org on 2021/02/19 02:21:46 UTC

[submarine] branch master updated: SUBMARINE-738. Automatically Deploy Submarine Docker images (#515)

This is an automated email from the ASF dual-hosted git repository.

ztang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git


The following commit(s) were added to refs/heads/master by this push:
     new 58ad9ba  SUBMARINE-738. Automatically Deploy Submarine Docker images (#515)
58ad9ba is described below

commit 58ad9bacdcfff05ea45794126e410effcce62baa
Author: HUAN-PING SU <pi...@apache.org>
AuthorDate: Fri Feb 19 10:21:41 2021 +0800

    SUBMARINE-738. Automatically Deploy Submarine Docker images (#515)
    
    Kevin Su via Zhankun Tang
---
 .github/workflows/deploy_docker_images.yml | 46 ++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/.github/workflows/deploy_docker_images.yml b/.github/workflows/deploy_docker_images.yml
new file mode 100644
index 0000000..3c851e2
--- /dev/null
+++ b/.github/workflows/deploy_docker_images.yml
@@ -0,0 +1,46 @@
+name: Deploy submarine docker images
+
+on:
+  push:
+    branches: [master]
+jobs:
+  deploy-images:
+    if: github.repository == ‘apache/submarine’
+    runs-on: ubuntu-latest
+    timeout-minutes: 240
+    strategy:
+      fail-fast: true
+    env:
+      SUBMARINE_VERSION: 0.6.0-SNAPSHOT 
+    steps:
+      - name: Check out code
+        uses: actions/checkout@v2
+        with: 
+          repository: apache/submarine
+      - uses: docker/login-action@v1
+        name: Login to Docker Hub
+        with:
+          username: ${{ secrets.DOCKER_USERNAME }}
+          password: ${{ secrets.DOCKER_PASSWORD }}
+      - name: Build Submarine repo
+        run: mvn clean install -DskipTests
+      
+      - name: Build submarine server
+        run: ./dev-support/docker-images/submarine/build.sh
+      - name: Push submarine-server docker image
+        run: docker push apache/submarine:server-$SUBMARINE_VERSION
+      
+      - name: Build submarine database
+        run: ./dev-support/docker-images/database/build.sh
+      - name: Push submarine-database docker image
+        run: docker push apache/submarine:database-$SUBMARINE_VERSION
+      
+      - name: Build submarine jupyter
+        run: ./dev-support/docker-images/jupyter/build.sh
+      - name: Push submarine-jupyter docker image
+        run: docker push apache/submarine:jupyter-notebook-$SUBMARINE_VERSION
+      
+      - name: Build submarine operator
+        run: ./dev-support/docker-images/operator/build.sh
+      - name: Push submarine-operator docker image
+        run: docker push apache/submarine:operator-$SUBMARINE_VERSION


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org