Compare commits
2 Commits
deploy-on-
...
deploy-to-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2a8032539 | ||
|
|
61b3c16c60 |
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -18,16 +18,14 @@ pipeline {
|
||||
}
|
||||
}
|
||||
stage('deploy') {
|
||||
environment {
|
||||
AWS_ACCESS_KEY_ID = credentials('jenkins_aws_access_key_id')
|
||||
AWS_SECRET_ACCESS_KEY = credentials('jenkins-aws_secret_access_key')
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
echo 'deploying docker image...'
|
||||
withKubeConfig([credentialsId: 'lke-credentials', serverUrl: 'https://79fa9228-1d11-47ec-870b-33106d53122b.eu-central-2.linodelke.net']) {
|
||||
sh 'kubectl create deployment nginx-deployment --image=nginx'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
11
src/main/resources/static/index.html
Normal file
11
src/main/resources/static/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>MyApp</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Welcome to Java Maven Application</h1>
|
||||
<!-- add image here <img src="" width="" /> -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user