Fix: Added automatic pipeline trigger build via variable

This commit is contained in:
Deon George 2018-09-03 10:08:11 +10:00
parent 18bfc8afd5
commit 5cece69746

View File

@ -38,7 +38,7 @@ build:
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${CACHETAG} -t ${CI_REGISTRY_IMAGE}:${VERSION} -t ${CI_REGISTRY_IMAGE}:${CACHETAG} .
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}
- docker push ${CI_REGISTRY_IMAGE}:${CACHETAG}
- [ -n "${TRIGGER_PIPELINE}" ] && curl -X POST -F token=${TRIGGER_PIPELINE} -F ref=x86_64-extras http://dev.leenooks.net/api/v4/projects/45/trigger/pipeline
- if [ -n "${TRIGGER_PIPELINE}" ]; then curl -X POST -F token=${TRIGGER_PIPELINE} -F ref=x86_64-extras http://dev.leenooks.net/api/v4/projects/45/trigger/pipeline; fi
tags:
- docker
only: