#13 Test build with multiple tags

This commit is contained in:
Csaba 2024-01-18 13:33:03 +01:00
parent 3f263f87f1
commit fddb0093bb

5
Jenkinsfile vendored
View file

@ -7,7 +7,8 @@ pipeline {
DOCKER_REGISTRY_URL = 'https://git.gerhardt.io' DOCKER_REGISTRY_URL = 'https://git.gerhardt.io'
OWNER = 'amarillo' OWNER = 'amarillo'
IMAGE_NAME = 'amarillo' IMAGE_NAME = 'amarillo'
TAG = 'latest' AMARILLO_DISTRIBUTION = '0.1'
TAG = "${AMARILLO_DISTRIBUTION}.${BUILD_NUMBER}"
PLUGINS = 'amarillo-metrics amarillo-enhancer' PLUGINS = 'amarillo-metrics amarillo-enhancer'
DEPLOY_WEBHOOK_URL = 'http://amarillo.mfdz.de:8888/mitanand' DEPLOY_WEBHOOK_URL = 'http://amarillo.mfdz.de:8888/mitanand'
DEPLOY_SECRET = credentials('AMARILLO-JENKINS-DEPLOY-SECRET') DEPLOY_SECRET = credentials('AMARILLO-JENKINS-DEPLOY-SECRET')
@ -19,7 +20,7 @@ pipeline {
script { script {
docker.build("${OWNER}/${IMAGE_NAME}:${TAG}", docker.build("${OWNER}/${IMAGE_NAME}:${TAG}",
//--no-cache to make sure plugins are updated //--no-cache to make sure plugins are updated
"${OWNER}/${IMAGE_NAME}:latest --no-cache --build-arg='PACKAGE_REGISTRY_URL=${PLUGINS_REPO_URL}' --build-arg='PLUGINS=${PLUGINS}' --secret id=AMARILLO_REGISTRY_CREDENTIALS,env=GITEA_CREDS .") "-t ${OWNER}/${IMAGE_NAME}:latest --no-cache --build-arg='PACKAGE_REGISTRY_URL=${PLUGINS_REPO_URL}' --build-arg='PLUGINS=${PLUGINS}' --secret id=AMARILLO_REGISTRY_CREDENTIALS,env=GITEA_CREDS .")
} }
} }
} }