FirmTracker-Server/JenkinsFile

25 lines
730 B
Plaintext
Raw Normal View History

2024-11-28 20:22:15 +01:00
pipeline {
agent any
2024-12-05 18:27:26 +01:00
environment {
IMG_NAME = 'firmtracker-server'
DOCKER_REPO = 'maciejm0101/firmtracker'
}
2024-11-28 20:22:15 +01:00
stages {
2024-12-05 18:27:26 +01:00
stage('build') {
2024-11-28 20:22:15 +01:00
steps {
2024-12-05 18:27:26 +01:00
script {
sh 'docker build -t ${IMG_NAME} .'
sh 'docker tag ${IMG_NAME} ${DOCKER_REPO}:${IMG_NAME}'
}
2024-11-28 20:22:15 +01:00
}
}
2024-12-05 18:27:26 +01:00
stage('push') {
2024-12-05 19:08:51 +01:00
steps {
2024-12-05 18:27:26 +01:00
script {
2024-12-05 19:12:55 +01:00
sh 'echo 'Makaron118912' | docker login -u "maciejm.01@interia.pl" --password-stdin'
2024-12-05 19:08:51 +01:00
sh 'docker push ${DOCKER_REPO}:${IMG_NAME}'
2024-12-05 18:27:26 +01:00
}
2024-11-28 20:22:15 +01:00
}
}
}
2024-12-05 18:27:26 +01:00
}