add kubectl deploy step

This commit is contained in:
Nana Janashia
2020-12-04 19:11:10 +01:00
parent ba11b6ecc8
commit 0a40971e52

5
Jenkinsfile vendored
View File

@@ -18,9 +18,14 @@ pipeline {
} }
} }
stage('deploy') { stage('deploy') {
environment {
AWS_ACCESS_KEY_ID = credentials('jenkins_aws_access_key_id')
AWS_SECRET_ACCESS_KEY = credentials('jenkins-aws_secret_access_key')
}
steps { steps {
script { script {
echo 'deploying docker image...' echo 'deploying docker image...'
sh 'kubectl create deployment nginx-deployment --image=nginx'
} }
} }
} }