This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/dev by this push:
new ac55a84e2 [docker-image] Should push docker image with fixed schedule.
(#1899)
ac55a84e2 is described below
commit ac55a84e270a6006258f8f3b89e507a2fa526f06
Author: gongzhongqiang <[email protected]>
AuthorDate: Tue Oct 25 16:42:14 2022 +0800
[docker-image] Should push docker image with fixed schedule. (#1899)
* [docker-image] Should push docker image with fixed schedule.
* trigger ci
Co-authored-by: gongzhongqiang <[email protected]>
---
.github/workflows/docker_push.yml | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/docker_push.yml
b/.github/workflows/docker_push.yml
index 8c28f0ff4..6e560aeb3 100644
--- a/.github/workflows/docker_push.yml
+++ b/.github/workflows/docker_push.yml
@@ -17,8 +17,17 @@
name: "Build Docker Image"
-on: workflow_dispatch
-
+on:
+ schedule:
+ - cron: '0 10 * * *'
+ push:
+ branches:
+ - '**'
+ tags:
+ - 'v*.*.*'
+ pull_request:
+ branches:
+ - 'dev'
jobs:
build_image:
runs-on: ubuntu-latest
@@ -51,7 +60,7 @@ jobs:
- name: Mixed front-end and back-end packaging
run: |
- mvn clean install -DskipTests -Dscala.version=2.12.15
-Dscala.binary.version=2.12 -Pwebapp
+ mvn clean install -DskipTests -Dscala.version=2.12.8
-Dscala.binary.version=2.12 -Pwebapp
- name: Log in to Docker Hub
uses: docker/login-action@v2
@@ -63,9 +72,13 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
- images: apache/streampark
+ images: goodboy008/streampark
+ tags: |
+ type=raw,value=latest,enable={{is_default_branch}}
+ type=ref,event=tag
+ type=ref,event=branch
- - name: Build and push streamx
+ - name: Build and push streampark
uses: docker/build-push-action@v3
with:
context: .
@@ -73,6 +86,3 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
-
-
-