diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 000000000..bcc4632bd
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,36 @@
+name: Maven github actions CI/CD for merge
+on:
+ workflow_dispatch:
+ pull_request:
+ branches:
+ - main
+ types: [closed]
+
+jobs:
+ my-action:
+ if: ${{ github.event.pull_request.merged }}
+ runs-on: ubuntu-latest
+ steps:
+
+ - name: Check out code
+ uses: actions/checkout@v4
+
+ - name: Configure AWS credentials
+ uses: aws-actions/configure-aws-credentials@v4
+ with:
+ aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ aws-region: ${{ vars.AWS_REGION }}
+
+ - name: Login to Amazon ECR
+ id: login-ecr
+ uses: aws-actions/amazon-ecr-login@v2
+ - name: Build, tag, and push docker image to Amazon ECR
+ env:
+ REGISTRY: ${{ steps.login-ecr.outputs.registry }}
+ REPOSITORY: my-ecr-repo
+ IMAGE_TAG: ${{ github.sha }}
+ run: |
+ docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG .
+ docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
+
diff --git a/pom.xml b/pom.xml
index e98113db6..1fc18f0e7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,22 +5,12 @@
org.springframework.boot
spring-boot-starter-parent
- 3.4.0
+ 3.2.0
-
-
- nexus-snapshots
- http://localhost:8081/repository/maven-snapshots/
-
-
- nexus-releases
- http://localhost:8081/repository/maven-releases/
-
-
scm:git:git@github.com:Piasecki-grid/maven-project.git
scm:git:git@github.com:Piasecki-grid/maven-project.git
@@ -57,7 +47,22 @@
0.0.43
-
+
+
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.6.0
+
+
+
+ checkstyle
+
+
+
+
+
+
@@ -340,10 +345,6 @@
-
- maven-group
- http://localhost:8081/repository/maven-central/
-