forked from KwickerHub/WebCraftifyAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issue#428#2782' of github.com:AbrarFaizMohammed/fronten…
…d into issue#428#2782
- Loading branch information
Showing
954 changed files
with
55,545 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM nginx:alpine | ||
|
||
RUN apk update \ | ||
&& apk add --no-cache nodejs npm \ | ||
&& rm -rf /var/cache/apk/** | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
|
||
RUN npm install | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
pipeline { | ||
agent any { | ||
tools { | ||
nodejs 'node19' | ||
} | ||
environment { | ||
SCANNER_HOME = tool 'sonar-scanner' | ||
} | ||
stages { | ||
stage('Git Checkout') { | ||
steps { | ||
git branch: 'main', url: 'https://github.com/Curtis-Thomas/free-api-list-with-react.git' | ||
} | ||
} | ||
stage('Quality Gate') { | ||
steps { | ||
script { | ||
waitForQualityGate abortPipeline: false, credentialsId: 'Sonar-token' | ||
} | ||
} | ||
} | ||
stage('OWASP File Security Scan') { | ||
steps { | ||
script { | ||
dependencyCheck additionalArguments: '', odcInstallation: 'DP-Check' | ||
} | ||
} | ||
} | ||
stage('Trivy File System Scan') { | ||
steps { | ||
sh 'trivy fs .' | ||
} | ||
} | ||
stage('Docker Build and Push') { | ||
steps { | ||
script { | ||
withDockerRegistry(credentialsId: 'docker') { | ||
sh 'docker build -t dockerusername:latest .' | ||
sh 'docker tag dockerusername/latest repotag/swoc:latest' | ||
// Consider merging or removing this line | ||
sh 'docker push repotag/swoc:latest' | ||
} | ||
} | ||
} | ||
} | ||
stage('Deploy to Container') { | ||
steps { | ||
sh 'docker run -d -p 80:80 dockerusername/swoc:latest' | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.