#13 Jenkinsfile docker build arguments
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit
This commit is contained in:
parent
9fb3d6d331
commit
d09868b184
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
|
@ -5,15 +5,17 @@ pipeline {
|
||||||
TWINE_REPO_URL = "https://git.gerhardt.io/api/packages/amarillo/pypi"
|
TWINE_REPO_URL = "https://git.gerhardt.io/api/packages/amarillo/pypi"
|
||||||
REGISTRY_URL = 'https://git.gerhardt.io'
|
REGISTRY_URL = 'https://git.gerhardt.io'
|
||||||
OWNER = 'amarillo'
|
OWNER = 'amarillo'
|
||||||
IMAGE_NAME = "amarillo"
|
IMAGE_NAME = 'amarillo'
|
||||||
TAG = 'latest'
|
TAG = 'latest'
|
||||||
|
PLUGINS = 'amarillo-metrics amarillo-enhancer'
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Build docker image') {
|
stage('Build docker image') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Building image'
|
echo 'Building image'
|
||||||
script {
|
script {
|
||||||
docker.build("${OWNER}/${IMAGE_NAME}:${TAG}")
|
docker.build("${OWNER}/${IMAGE_NAME}:${TAG}",
|
||||||
|
"--build-arg='PACKAGE_REGISTRY_URL=${REGISTRY_URL}' --build-arg='PLUGINS=${PLUGINS}' --secret id=AMARILLO_REGISTRY_CREDENTIALS,env=GITEA_CREDS .")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue