automated terminal push
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -14,10 +14,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Build Docker Image') {
|
stage('Build Docker Image') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
sh '''
|
||||||
// Build the .NET 8 Minimal API image with a build number tag and latest
|
docker build -t skennen:${BUILD_NUMBER} \
|
||||||
docker.build("skennen:${env.BUILD_NUMBER}", '-f dotnet8-minimal-api/Dockerfile dotnet8-minimal-api')
|
-f dotnet8-minimal-api/Dockerfile dotnet8-minimal-api
|
||||||
}
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Tag & Push to ACR') {
|
stage('Tag & Push to ACR') {
|
||||||
|
Reference in New Issue
Block a user