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

bsalzano pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-streamer.git

commit b6953437e5500a657143924e7396486964c94f5c
Author: Bruno Salzano <[email protected]>
AuthorDate: Wed Apr 30 13:44:08 2025 +0200

    chore: github action
    
    fixed github actions. now is active the push to apache dockerhub
---
 .github/workflows/image.yml | 24 +++++++++++-------------
 Taskfile.yml                |  4 +++-
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml
index 48c08ea..1599ab0 100644
--- a/.github/workflows/image.yml
+++ b/.github/workflows/image.yml
@@ -33,12 +33,12 @@ jobs:
         run: |
           sudo rm -rf /usr/share/dotnet
           sudo rm -rf "$AGENT_TOOLSDIRECTORY"
-      - name: Setup
-        run: bash .github/cisetup.sh
       - name: Checkout
         uses: actions/checkout@v2
         with:
           submodules: recursive
+      - name: Setup
+        run: bash .github/cisetup.sh
       - name: License
         uses: apache/skywalking-eyes@main
       - name: Assign TAG from pull request
@@ -58,16 +58,14 @@ jobs:
           registry: registry.hub.docker.com
           username: ${{ secrets.DOCKERHUB_USER }}
           password: ${{ secrets.DOCKERHUB_TOKEN }}
+      - name: Set up QEMU
+        uses: docker/setup-qemu-action@v3
+        with:
+          image: tonistiigi/binfmt:qemu-v7.0.0-28
       - name: Set up Docker Buildx
         uses: docker/setup-buildx-action@v3
-        with:
-          version: "lab:latest"
-          use: true
-      - name: Build and push
-        uses: docker/build-push-action@v5
-        with:          
-          platforms: linux/amd64, linux/arm64
-          tags: apache/openserverless-streamer:${{ env.IMG_TAG }}     
-          # For pull requests, export results to the build cache.
-          # Otherwise, push to a registry.
-          outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' 
|| 'type=registry,push=true' }}
\ No newline at end of file
+      - name: Image
+        env:
+          REGISTRY: apache
+          NAMESPACE: apache
+        run: task buildx PUSH=1 TAG=$IMG_TAG
\ No newline at end of file
diff --git a/Taskfile.yml b/Taskfile.yml
index 792a5ab..a1cf476 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -18,7 +18,7 @@
 version: "3"
 
 vars:
-  BASETAG: 0.1.0-rc1-incubating
+  BASETAG: 0.1.0-incubating
   COMMIT_ID:
     sh: git rev-parse --short HEAD
   TAG:
@@ -68,6 +68,8 @@ tasks:
           echo "ghcr.io/$NAMESPACE/openserverless-streamer"
         elif [ "$REGISTRY" = "dockerhub" ]; then
           echo "docker.io/$NAMESPACE/openserverless-streamer"
+        elif [ "$REGISTRY" = "apache" ]; then
+          echo "registry.hub.docker.com/apache/openserverless-streamer"
         else
           echo "openserverless-streamer"
         fi

Reply via email to