Created
December 8, 2022 10:39
-
-
Save shar1z/8d4283c00cac8a1a374ff488d792407e to your computer and use it in GitHub Desktop.
CI/CD chatgpt
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
node { | |
stage("Clone repository") { | |
git url: "https://github.com/<username>/<repository>.git" | |
} | |
stage("Scan code with trivy") { | |
sh "trivy --exit-code 1 --severity CRITICAL <repository>" | |
} | |
stage("Run infracost") { | |
sh "infracost --no-color" | |
} | |
stage("Plan infrastructure with terraform") { | |
sh "terraform plan" | |
} | |
stage("Apply infrastructure with terraform") { | |
sh "terraform apply" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment