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
14 changes: 7 additions & 7 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: CICD Pipeline

on:
push:
branches: [ "main" ]
branches: [ "" ]

jobs:
compile:
runs-on: self-hosted
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -20,7 +20,7 @@ jobs:
run: mvn compile

security-check:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: compile

steps:
Expand All @@ -42,7 +42,7 @@ jobs:
run: gitleaks detect source . -r gitleaks-report.json -f json

test:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: security-check
steps:
- uses: actions/checkout@v4
Expand All @@ -56,7 +56,7 @@ jobs:
run: mvn test

build_project_and_sonar_scan:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}

buils_docker_image_and_push:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: build_project_and_sonar_scan
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
file: ./Dockerfile

deploy_to_kubernetes:
runs-on: self-hosted
runs-on: ubuntu-latest
needs: buils_docker_image_and_push
steps:
- name: Checkout Code
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/lokesh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: lokesh github actions
on:
workflow_dispatch:
inputs:
deploy_env:
description: " env to deploy"
required: true
default: :"dev"
type: choice
options: [dev, prod]
jobs:
job1:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4