This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch dev-2.1.4
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/dev-2.1.4 by this push:
new 6d63992b5 [Improve] docker-push script improvement
6d63992b5 is described below
commit 6d63992b5c40b4164a401e9aedf4b10b15314dcc
Author: benjobs <[email protected]>
AuthorDate: Mon Apr 8 21:06:56 2024 +0800
[Improve] docker-push script improvement
---
.github/workflows/docker-push.yml | 26 +++++++++++---------------
1 file changed, 11 insertions(+), 15 deletions(-)
diff --git a/.github/workflows/docker-push.yml
b/.github/workflows/docker-push.yml
index f20346b7d..227988283 100644
--- a/.github/workflows/docker-push.yml
+++ b/.github/workflows/docker-push.yml
@@ -57,36 +57,32 @@ jobs:
run: |
./mvnw clean install -DskipTests -Pscala-2.12,shaded,dist,webapp
- - name: Log in to Docker Hub
+ - name: Log in to the Container registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Set environment variables
- run: |
- if [[ ${{ github.event_name }} == "release" ]]; then
- TAG=${{ github.event.release.tag_name }}
- echo "TAG=${TAG#v}" >> $GITHUB_ENV
- else
- echo "TAG=${{ github.sha }}" >> $GITHUB_ENV
- fi
-
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v2
+
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v2
+
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: apache/streampark
tags: |
- type=raw,value=latest,enable={{is_default_branch}}
- type=ref,event=tag
- type=ref,event=branch
+ type=semver,pattern={{version}}
- name: Build and push streampark
uses: docker/build-push-action@v3
with:
context: .
file: docker/Dockerfile
- push: true
- tags: ${{ env.TAG }}
+ platforms: linux/amd64,linux/arm64
+ tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
+ push: true