From 840b8285f35176c35938ab44bc6bbf088c70023f Mon Sep 17 00:00:00 2001
From: Daniele Martinoli <86618610+dmartinol@users.noreply.github.com>
Date: Fri, 2 Feb 2024 15:59:21 +0100
Subject: [PATCH 1/2] inheriting parent pom in jira-listener
---
escalation-eda/jira-listener/pom.xml | 85 ++--------------------------
1 file changed, 6 insertions(+), 79 deletions(-)
diff --git a/escalation-eda/jira-listener/pom.xml b/escalation-eda/jira-listener/pom.xml
index 922592e..8092b2f 100644
--- a/escalation-eda/jira-listener/pom.xml
+++ b/escalation-eda/jira-listener/pom.xml
@@ -4,32 +4,16 @@
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4.0.0
- dev.parodos
jira-listener
- 1.0.0-SNAPSHOT
+
+ dev.parodos
+ swf-parent
+ 1.0.0-SNAPSHOT
+ ../../swf-parent
+
- 3.11.0
- 11
- UTF-8
- UTF-8
- quarkus-bom
- io.quarkus.platform
- 3.4.2
2.5.0
- true
- 3.1.2
-
-
-
- ${quarkus.platform.group-id}
- ${quarkus.platform.artifact-id}
- ${quarkus.platform.version}
- pom
- import
-
-
-
io.quarkus
@@ -95,63 +79,6 @@
https://packages.atlassian.com/mvn/maven-atlassian-external
-
-
-
- ${quarkus.platform.group-id}
- quarkus-maven-plugin
- ${quarkus.platform.version}
- true
-
-
-
- build
- generate-code
- generate-code-tests
-
-
-
-
-
- maven-compiler-plugin
- ${compiler-plugin.version}
-
-
- -parameters
-
-
-
-
- maven-surefire-plugin
- ${surefire-plugin.version}
-
-
- org.jboss.logmanager.LogManager
- ${maven.home}
-
-
-
-
- maven-failsafe-plugin
- ${surefire-plugin.version}
-
-
-
- integration-test
- verify
-
-
-
- ${project.build.directory}/${project.build.finalName}-runner
- org.jboss.logmanager.LogManager
- ${maven.home}
-
-
-
-
-
-
-
native
From cff46be0814182b073d3b81e902aa4ce0123f930 Mon Sep 17 00:00:00 2001
From: Daniele Martinoli <86618610+dmartinol@users.noreply.github.com>
Date: Fri, 2 Feb 2024 16:14:12 +0100
Subject: [PATCH 2/2] jira-listener GH workflow
---
.github/workflows/jira-listener.yaml | 50 ++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
create mode 100644 .github/workflows/jira-listener.yaml
diff --git a/.github/workflows/jira-listener.yaml b/.github/workflows/jira-listener.yaml
new file mode 100644
index 0000000..705e045
--- /dev/null
+++ b/.github/workflows/jira-listener.yaml
@@ -0,0 +1,50 @@
+name: Build and push jira-listener container image
+
+on:
+ workflow_dispatch:
+ push:
+ branches: [ "main" ]
+ paths:
+ - 'escalation-eda/jira-listener/**'
+
+env:
+ WORKDIR: escalation-eda/jira-listener
+ MVN_OPTS: ""
+
+jobs:
+ build-and-push-jira-listener:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-java@v3
+ with:
+ java-version: '17'
+ distribution: 'temurin'
+ - name: Build Java projects
+ run: |
+ cd ${WORKDIR}
+ mvn ${MVN_OPTS} -B clean package
+
+ - name: Buildah Action
+ id: build-image
+ uses: redhat-actions/buildah-build@v2
+ with:
+ context: ${{ env.WORKDIR }}
+ image: serverless-workflow-jira-listener
+ tags: latest ${{ github.sha }}
+ extra-args: --ulimit nofile=4096:4096
+ containerfiles: |
+ ${{ env.WORKDIR }}/src/main/docker/Dockerfile.jvm
+
+ - name: Push To quay.io
+ id: push-to-quay
+ uses: redhat-actions/push-to-registry@v2
+ with:
+ image: ${{ steps.build-image.outputs.image }}
+ tags: ${{ steps.build-image.outputs.tags }}
+ registry: quay.io/orchestrator
+ username: ${{ secrets.QUAY_USERNAME }}
+ password: ${{ secrets.QUAY_PASSWORD }}
+
+ - name: Print image url
+ run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
\ No newline at end of file