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

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

commit 2d0204d08d62e4cea3617322757127e582acf690
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Tue Sep 13 15:16:05 2022 -0400

    Support build separate images for public/basic/oidc auth
---
 .github/workflows/app.yml     | 30 ++++++++++++++++++++++++++----
 .github/workflows/builder.yml |  2 +-
 .github/workflows/native.yml  |  2 +-
 .github/workflows/vscode.yml  |  2 +-
 4 files changed, 29 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml
index 5f95a32..3d414b2 100644
--- a/.github/workflows/app.yml
+++ b/.github/workflows/app.yml
@@ -1,4 +1,4 @@
-name: Build and push Application 
+name: cloud-native app 
 
 on:
   push:
@@ -46,13 +46,35 @@ jobs:
         working-directory: ./karavan-core
         run: npm install
 
-      #  Build Karavan standalone
-      - name: Build Karavan standalone
+      #  Build Karavan cloud app with public access
+      - name: Build application public
         run: |
-          mvn package -f karavan-app -DskipTest \
+          mvn package -f karavan-app -Dquarkus.profile=public -DskipTest \
           -Dquarkus.container-image.build=true \
           -Dquarkus.container-image.push=true \
           -Dquarkus.container-image.image=ghcr.io/${GITHUB_REPOSITORY}:3.18.3 \
           -Dquarkus.container-image.username=${{ github.actor }} \
           -Dquarkus.container-image.password=${{ secrets.GITHUB_TOKEN }}
         if: ${{ github.ref == 'refs/heads/main' }}
+
+      #  Build Karavan cloud app with basic authorization
+      - name: Build application basic auth
+        run: |
+          mvn package -f karavan-app -Dquarkus.profile=basic -DskipTest \
+          -Dquarkus.container-image.build=true \
+          -Dquarkus.container-image.push=true \
+          
-Dquarkus.container-image.image=ghcr.io/${GITHUB_REPOSITORY}-basic:3.18.3 \
+          -Dquarkus.container-image.username=${{ github.actor }} \
+          -Dquarkus.container-image.password=${{ secrets.GITHUB_TOKEN }}
+        if: ${{ github.ref == 'refs/heads/main' }}
+
+      #  Build Karavan cloud app with oidc authorization
+      - name: Build application oidc
+        run: |
+          mvn package -f karavan-app -Dquarkus.profile=oidc -DskipTest \
+          -Dquarkus.container-image.build=true \
+          -Dquarkus.container-image.push=true \
+          
-Dquarkus.container-image.image=ghcr.io/${GITHUB_REPOSITORY}-oidc:3.18.3 \
+          -Dquarkus.container-image.username=${{ github.actor }} \
+          -Dquarkus.container-image.password=${{ secrets.GITHUB_TOKEN }}
+        if: ${{ github.ref == 'refs/heads/main' }}
\ No newline at end of file
diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml
index f4516f6..aef4a4c 100644
--- a/.github/workflows/builder.yml
+++ b/.github/workflows/builder.yml
@@ -1,4 +1,4 @@
-name: Build and Push Builder Image
+name: builder image
 
 on:
   push:
diff --git a/.github/workflows/native.yml b/.github/workflows/native.yml
index 082769d..7fcbb6b 100644
--- a/.github/workflows/native.yml
+++ b/.github/workflows/native.yml
@@ -1,4 +1,4 @@
-name: Build native image
+name: native-image
 
 on:
   push:
diff --git a/.github/workflows/vscode.yml b/.github/workflows/vscode.yml
index 017c348..fd9d8e5 100644
--- a/.github/workflows/vscode.yml
+++ b/.github/workflows/vscode.yml
@@ -1,4 +1,4 @@
-name: Build VS CODE Extension
+name: vscode xtension
 
 on:
   push:

Reply via email to