Fix Docker image name references in build and push stages

This commit is contained in:
2025-06-04 11:22:46 +02:00
parent 3ccafcf0bb
commit 8177a0001f

4
Jenkinsfile vendored
View File

@@ -57,7 +57,7 @@ pipeline {
stage('Build Docker Image') { stage('Build Docker Image') {
steps { steps {
dockerBuild( dockerBuild(
imageName: "${IMAGE_TAG}", imageName: "${IMAGE_NAME}:${params.BUILD_ID}",
dockerfile: "deployments/docker/Dockerfile", dockerfile: "deployments/docker/Dockerfile",
context: "deployments/docker" context: "deployments/docker"
) )
@@ -67,7 +67,7 @@ pipeline {
stage('Push Docker Image') { stage('Push Docker Image') {
steps { steps {
dockerPush( dockerPush(
imageName: "${IMAGE_TAG}", imageName: "${IMAGE_NAME}:${params.BUILD_ID}",
registry: "${DOCKER_REGISTRY}", registry: "${DOCKER_REGISTRY}",
credentialsId: "postio-bot-gitea" credentialsId: "postio-bot-gitea"
) )