|
@@ -39,11 +39,11 @@ node {
|
|
|
docker.withTool("myDocker"){
|
|
docker.withTool("myDocker"){
|
|
|
docker.withRegistry(registryAddress, registryCredential) {
|
|
docker.withRegistry(registryAddress, registryCredential) {
|
|
|
|
|
|
|
|
- def dockerImage = docker.build("ptb-be:latest")
|
|
|
|
|
|
|
+ def dockerImage = docker.build("ptb-be:${env.BUILD_ID}")
|
|
|
|
|
|
|
|
/* Push the container to the custom Registry */
|
|
/* Push the container to the custom Registry */
|
|
|
dockerImage.push()
|
|
dockerImage.push()
|
|
|
- // dockerImage.push('latest')
|
|
|
|
|
|
|
+ dockerImage.push('latest')
|
|
|
|
|
|
|
|
def imageName = "000-sidali.kemdiktisaintek.go.id/ptb-be:latest"
|
|
def imageName = "000-sidali.kemdiktisaintek.go.id/ptb-be:latest"
|
|
|
def composeDir = '/workdir/production'
|
|
def composeDir = '/workdir/production'
|