mirror of https://github.com/docker/docs.git
Make file accessible to CI
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
This commit is contained in:
parent
cb080ede06
commit
23a1cf3c60
|
@ -13,8 +13,10 @@ function cleanupAndExit {
|
||||||
# Check for existence of SUCCESS
|
# Check for existence of SUCCESS
|
||||||
ls test_output/SUCCESS
|
ls test_output/SUCCESS
|
||||||
exitCode=$?
|
exitCode=$?
|
||||||
# Clean up test_output dir and exit
|
# Clean up test_output dir (if not in CircleCI) and exit
|
||||||
rm -rf test_output
|
if [[ -z "${CIRCLECI}" ]]; then
|
||||||
|
rm -rf test_output
|
||||||
|
fi
|
||||||
exit $exitCode
|
exit $exitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,3 +45,6 @@ bin/notary ${OPTS} add ${REPONAME} readmetarget README.md
|
||||||
bin/notary ${OPTS} publish ${REPONAME}
|
bin/notary ${OPTS} publish ${REPONAME}
|
||||||
bin/notary ${OPTS} delegation list ${REPONAME} | grep targets/releases
|
bin/notary ${OPTS} delegation list ${REPONAME} | grep targets/releases
|
||||||
cat README.md | bin/notary ${OPTS} verify $REPONAME readmetarget > /test_output/SUCCESS
|
cat README.md | bin/notary ${OPTS} verify $REPONAME readmetarget > /test_output/SUCCESS
|
||||||
|
|
||||||
|
# Make this file accessible for CI
|
||||||
|
chmod 777 /test_output/SUCCESS
|
||||||
|
|
Loading…
Reference in New Issue