Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mimaraslan/java-044-devops-hello
DevOps Git Maven Docker DockerHub Kubernetes
https://github.com/mimaraslan/java-044-devops-hello
Last synced: about 1 month ago
JSON representation
DevOps Git Maven Docker DockerHub Kubernetes
- Host: GitHub
- URL: https://github.com/mimaraslan/java-044-devops-hello
- Owner: mimaraslan
- Created: 2024-08-31T11:58:31.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-09-14T23:26:57.000Z (3 months ago)
- Last Synced: 2024-09-15T06:46:31.946Z (3 months ago)
- Language: Java
- Size: 1.77 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DevOps
DevOps Git Maven Docker DockerHub Kubernetesdocker build --build-arg JAR_FILE=target/devops-application.jar -t mimaraslan/devops-application:v001 .
## Jenkins configs
pipeline {
agent anytools {
maven 'Maven3'
// java 'Java17'
}stages {
stage('Build Maven') {
steps {
checkout scmGit(branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/mimaraslan/java-044-devops-hello']])
// sh 'mvn clean install'
bat 'mvn clean install'
}
}
stage('Docker Image') {
steps {
// sh 'docker build -t mimaraslan/devops-application .'
bat 'docker build -t mimaraslan/devops-application .'
}
}
stage('Docker Image to DockerHub') {
steps {
script{
withCredentials([string(credentialsId: 'dockerhub', variable: 'dockerhub')]) {
bat 'echo docker login -u mimaraslan -p ${dockerhub}'
bat 'docker push mimaraslan/devops-application:latest'
}
}
}
}
stage('Kubernetes Pod') {
steps {
}
}
}
}