diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000000..f7367e0d42 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,35 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 diff --git a/Dockerfile b/Dockerfile index 171c9407fb..12c525862d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ -# Pull base image -From tomcat:8-jre8 - -# Maintainer -MAINTAINER "valaxytech@gmail.com" -COPY ./webapp.war /usr/local/tomcat/webapps - +FROM nginx +RUN mkdir -p /opt/kaka +RUN mkdir hello +RUN mkdir babu +RUN mkdir telugu diff --git a/README.md b/README.md index 05530af213..8990f8a5bc 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ -## DevOps Project for Beginners - -[![Image](https://github.com/yankils/Simple-DevOps-Project/blob/master/Devops_course.PNG "DevOps Project - CI/CD with Jenkins Ansible Docker Kubernetes ")](https://www.udemy.com/course/valaxy-devops/?referralCode=8147A5CF4C8C7D9E253F) +hello +how are you +tuesday +performance testing +this is for webhook testing diff --git a/pom.xml b/pom.xml index 93eeb2de66..7189ec2bce 100644 --- a/pom.xml +++ b/pom.xml @@ -34,8 +34,8 @@ maven-compiler-plugin - 1.6 - 1.6 + 1.8 + 1.8 diff --git a/webapp/pom.xml b/webapp/pom.xml index 7a46c58df1..7e8c66606f 100644 --- a/webapp/pom.xml +++ b/webapp/pom.xml @@ -23,6 +23,11 @@ org.mortbay.jetty jetty-maven-plugin + + org.apache.maven.plugins + maven-war-plugin + 3.3.1 + diff --git a/webapp/src/main/webapp/index.jsp b/webapp/src/main/webapp/index.jsp index c833a72aec..3540e5859c 100644 --- a/webapp/src/main/webapp/index.jsp +++ b/webapp/src/main/webapp/index.jsp @@ -1,3 +1,4 @@ -

Hello, Welcome to Simple DevOps Project !!

-

Deploying on a kubernetes using ansible for Valaxy Technologies

-

Glad to see you here

+

Welcome to DevOps2 Batch

+

Deployed WAR file into Tomcat server

+

Please follow same process to deploy WAR file to Tomcat

+

Hello @Sai @Naresh @Uchala @Maniratnam @Ayyappa @Niranjan @JaiBharath FYI