diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bdef288..bbdce5e 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,16 @@ 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 --help + docker login -u $USERNAME -p $PASSWORD quay.io + docker tag quay.io/hawtio/hawtio-online-example-camel-quarkus:latest quay.io/hawtio/hawtio-online-example-camel-quarkus:${{matrix.java}} + docker tag quay.io/hawtio/hawtio-online-example-camel-springboot:latest quay.io/hawtio/hawtio-online-example-camel-springboot:${{matrix.java}} + + docker push quay.io/hawtio/hawtio-online-example-camel-quarkus:${{matrix.java}} + docker push quay.io/hawtio/hawtio-online-example-camel-springboot:${{matrix.java}} 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 + + +