This is an automated email from the ASF dual-hosted git repository.
ulyssesyou pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-kyuubi.git
The following commit(s) were added to refs/heads/dev by this push:
new fc7ac8c [DEV] Push docker image (#1139)
fc7ac8c is described below
commit fc7ac8c4093d625527044c2bcc9fdf128fd8df6b
Author: ulysses <[email protected]>
AuthorDate: Thu Sep 23 11:49:10 2021 +0800
[DEV] Push docker image (#1139)
docker workflow
---
.github/workflows/image.yml | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml
new file mode 100644
index 0000000..142a742
--- /dev/null
+++ b/.github/workflows/image.yml
@@ -0,0 +1,28 @@
+name: Publish Docker image
+
+on:
+ push:
+ branches:
+ - dev
+
+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: Login to Docker Hub
+ uses: docker/login-action@v1
+ with:
+ username: ${{ secrets.DOCKERHUB_USER }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+
+ - name: Build and push Docker image
+ uses: docker/build-push-action@v2
+ with:
+ file: docker/Dockerfile
+ push: true
+ tags: apache/kyuubi:latest