This commit is contained in:
Alejandro Sarmiento
2024-03-11 18:32:35 +01:00
parent e290173fc3
commit 1fd8811dc7

View File

@@ -0,0 +1,32 @@
pipeline {
agent any
environment {
DOCKER_REGISTRY_URL = credentials('docker-registry-url')
DOCKER_REGISTRY_USER = credentials('docker-registry-user')
DOCKER_REGISTRY_PASSWORD = credentials('docker-registry-password')
ASP_ENVIRONMENT = 'Production'
}
stages {
stage ('Checkout') {
steps {
checkout scm
}
}
stage ('Build') {
steps {
script {
def version = "0.0.${env.BUILD_NUMBER}"
echo 'docker build -t $DOCKER_REGISTRY_URL/$clean-architecture-backend:${version} .'
}
}
}
}
}