Skip to content

Commit

Permalink
Версия образа из переменной
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilBeaver committed Jun 5, 2020
1 parent 86847d0 commit 90e0352
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
pipeline {

agent none
environment {
ReleaseNumber = '0.7.0'
}
stages {
stage('Build everything')
{
Expand Down Expand Up @@ -73,8 +76,8 @@ pipeline {
userRemoteConfigs: [[url: 'https://github.com/EvilBeaver/OneScript.Web.git']]])

withCredentials([usernamePassword(credentialsId: 'docker-hub', passwordVariable: 'dockerpassword', usernameVariable: 'dockeruser')]) {
sh 'docker build -t evilbeaver/oscript-web:0.6.0 --file Dockerfile src'
sh 'docker login -p $dockerpassword -u $dockeruser && docker push evilbeaver/oscript-web:0.6.0'
sh "docker build -t evilbeaver/oscript-web:${ReleaseNumber} --file Dockerfile src"
sh "docker login -p $dockerpassword -u $dockeruser && docker push evilbeaver/oscript-web:${ReleaseNumber}"
}
}
}
Expand Down

0 comments on commit 90e0352

Please sign in to comment.