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

mgubaidullin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new e34259fa Fix devmode github action
e34259fa is described below

commit e34259fa5006052b100c523b60b46e5216063e86
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Tue Aug 25 11:25:53 2026 -0400

    Fix devmode github action
---
 .github/workflows/docker-devmode.yml | 40 ++++++++++++++++++------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/.github/workflows/docker-devmode.yml 
b/.github/workflows/docker-devmode.yml
index f33ccd87..3ef111bc 100644
--- a/.github/workflows/docker-devmode.yml
+++ b/.github/workflows/docker-devmode.yml
@@ -16,16 +16,16 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Checkout repository
-        uses: actions/checkout@v7
+        uses: actions/checkout@v4 # Note: actions/checkout only goes up to v4 
currently
 
       - name: Set up JDK 21
-        uses: actions/setup-java@v5
+        uses: actions/setup-java@v4
         with:
           distribution: temurin
           java-version: 21
 
       - name: Cache local Maven repository
-        uses: actions/cache@v6
+        uses: actions/cache@v4
         with:
           path: |
             ~/.m2/repository
@@ -38,26 +38,26 @@ jobs:
         run: mvn clean package
 
       - name: Set up QEMU
-        uses: docker/setup-qemu-action@v4
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y qemu-user-static
         
       - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@v4
+        run: |
+          docker buildx create --use
 
       - name: Log in to the Container registry
-        uses: docker/login-action@v4
-        with:
-          registry: ${{ env.REGISTRY }}
-          username: ${{ github.actor }}
-          password: ${{ secrets.GITHUB_TOKEN }}
+        run: |
+          echo "${{ secrets.GITHUB_TOKEN }}" | docker login ${{ env.REGISTRY 
}} -u ${{ github.actor }} --password-stdin
 
       - name: Build and push Devmode image
-        uses: docker/build-push-action@v7
-        with:
-          context: ./karavan/karavan-devmode
-          platforms: linux/amd64,linux/arm64
-          file: ./karavan/karavan-devmode/Dockerfile
-          push: true
-          tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
-          no-cache: true
-          sbom: true
-          provenance: mode=max
\ No newline at end of file
+        run: |
+          docker buildx build \
+            --platform linux/amd64,linux/arm64 \
+            --file ./karavan/karavan-devmode/Dockerfile \
+            --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} \
+            --push \
+            --no-cache \
+            --sbom=true \
+            --provenance=mode=max \
+            ./karavan/karavan-devmode
\ No newline at end of file

Reply via email to