Moved build trigger token to a variable

This commit is contained in:
Deon George 2018-09-03 10:15:15 +10:00
parent 99dbc6b4b6
commit 03851190a2

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}
- curl -X POST -F token=2512db34f1e84a7486ef174dd7147e -F ref=armv7l-extras http://dev.leenooks.net/api/v4/projects/45/trigger/pipeline
- if [ -n "${TRIGGER_PIPELINE}" ]; then curl -sSX POST -F token=${TRIGGER_PIPELINE} -F ref=x86_64-extras http://dev.leenooks.net/api/v4/projects/45/trigger/pipeline > /dev/null; fi
tags:
- docker-armv7l
only: