introduce jenkinsfile
This commit is contained in:
parent
2dcee126c7
commit
a0d1828cf4
1 changed files with 17 additions and 0 deletions
17
Jenkinsfile
vendored
Normal file
17
Jenkinsfile
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
node {
|
||||||
|
def app
|
||||||
|
|
||||||
|
stage('Clone') {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Build') {
|
||||||
|
app = docker.build('mykola2312/mk-dl-bot')
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Push') {
|
||||||
|
docker.withRegistry('https://registry.hub.docker.com', 'a2aa5264-dce1-4054-8828-8db95e3c6c3c') {
|
||||||
|
app.push('')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue