diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index bdef288..2476b64 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -9,11 +9,13 @@ on:
push:
branches:
- main
+ - build-job
paths-ignore:
- '**.md'
jobs:
build:
+ if: github.repository_owner == 'hawtio'
runs-on: ubuntu-latest
strategy:
fail-fast: false
@@ -30,4 +32,12 @@ jobs:
cache: 'maven'
- name: Build
run: |
- mvn --batch-mode --no-transfer-progress install
+ mvn --batch-mode --no-transfer-progress install -Djkube.build.strategy=docker
+ - name: Push image to Quay.io
+ env:
+ USERNAME: ${{ secrets.QUAY_USERNAME }}
+ PASSWORD: ${{ secrets.QUAY_PASSWORD }}
+ run: |
+ docker login -u $USERNAME -p $PASSWORD quay.io
+ docker push quay.io/hawtio/hawtio-online-example-camel-quarkus:latest
+ docker push quay.io/hawtio/hawtio-online-example-camel-springboot:latest
diff --git a/camel-springboot/pom.xml b/camel-springboot/pom.xml
index 6cd5d19..2c9a6b4 100644
--- a/camel-springboot/pom.xml
+++ b/camel-springboot/pom.xml
@@ -123,6 +123,14 @@
org.eclipse.jkube
kubernetes-maven-plugin
${kubernetes-maven-plugin-version}
+
+
+ install
+
+ build
+
+
+