#13 Test build with multiple tags
This commit is contained in:
parent
3f263f87f1
commit
fddb0093bb
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
|
@ -7,7 +7,8 @@ pipeline {
|
|||
DOCKER_REGISTRY_URL = 'https://git.gerhardt.io'
|
||||
OWNER = 'amarillo'
|
||||
IMAGE_NAME = 'amarillo'
|
||||
TAG = 'latest'
|
||||
AMARILLO_DISTRIBUTION = '0.1'
|
||||
TAG = "${AMARILLO_DISTRIBUTION}.${BUILD_NUMBER}"
|
||||
PLUGINS = 'amarillo-metrics amarillo-enhancer'
|
||||
DEPLOY_WEBHOOK_URL = 'http://amarillo.mfdz.de:8888/mitanand'
|
||||
DEPLOY_SECRET = credentials('AMARILLO-JENKINS-DEPLOY-SECRET')
|
||||
|
|
@ -19,7 +20,7 @@ pipeline {
|
|||
script {
|
||||
docker.build("${OWNER}/${IMAGE_NAME}:${TAG}",
|
||||
//--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 .")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue