You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by GitBox <gi...@apache.org> on 2021/10/08 12:33:58 UTC

[GitHub] [incubator-kyuubi] ulysses-you commented on a change in pull request #1195: [KYUUBI #937] Add push docker image workflow

ulysses-you commented on a change in pull request #1195:
URL: https://github.com/apache/incubator-kyuubi/pull/1195#discussion_r724970655



##########
File path: .github/workflows/docker-image.yml
##########
@@ -0,0 +1,29 @@
+name: Publish Docker image
+
+on:
+  push:
+    branches:
+      - master
+
+jobs:
+  push_to_registry:
+    name: Push Docker image to Docker Hub
+    runs-on: ubuntu-latest
+    concurrency:
+      # this group should be global unique
+      group: push-docker-image
+      cancel-in-progress: true
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+      - name: Login to Docker Hub
+        uses: docker/login-action@v1
+        with:
+          username: ${{ secrets.DOCKERHUB_USER }}
+          password: ${{ secrets.DOCKERHUB_TOKEN }}
+      - name: Build Kyuubi Docker Image
+        run: docker build --tag apache/kyuubi:master-snapshot --file docker/Dockerfile .

Review comment:
       Every merged commit will build and push the image so it's always latest. If we want to find the git commit id of image, we can read the `RELEASE` file in `KYUUBI_HOME`.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org