Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 1 addition & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
pull_request:
branches: [ main ]

env:
DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }}


jobs:
build:
Expand All @@ -24,21 +23,3 @@ jobs:
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- name: SonarQube Quality Gate check
uses: sonarsource/sonarqube-quality-gate-action@master
# Force to fail step after specific time
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Install Datree
run: curl https://get.datree.io | /bin/bash

- name: Run Datree's policy check
run: datree test kube.yaml


1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# this is multi stage
FROM openjdk:11 as base
WORKDIR /app
COPY . .
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CICD_Java_gradle_application


This application is java spring boot web application

Expand All @@ -8,4 +8,4 @@ when we build the code using command ```./gradlew build ``` it will generate war

code is integrated with sonarqube plugin which help us in static code analysis

``` ./gradlew sonarqube ```
``` ./gradlew sonarqube ```
2 changes: 1 addition & 1 deletion kube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
- name: registry-secret
containers:
- name: myapp
image: imagename
image: nginx:1.0
command: ["/bin/sh"]
args: ["-c","sh /usr/local/tomcat/bin/startup.sh;while true; do echo hello; sleep 10;done"]
imagePullPolicy: IfNotPresent
Expand Down