This commit is contained in:
Andrew Krug 2019-03-19 13:59:35 -07:00
Родитель ec9265f887
Коммит cae75028bf
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: BEBE65BA52166840
1 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -23,8 +23,8 @@ if [[ "branch/master" == "$CODEBUILD_WEBHOOK_TRIGGER" ]]
make build-from-github
make hub-login
cd cloudy_mozdef
BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` make packer-build-github
cd ../ && BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` make hub-tagged
make BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` packer-build-github
cd ../ && make BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` hub-tagged
elif [[ "$CODEBUILD_WEBHOOK_TRIGGER" =~ ^tag\/[0-9]\.[0-9]\.[0-9](\-(pre|testing))?$ ]]
then
echo "Building a release from a pre-release tag."
@ -32,8 +32,8 @@ elif [[ "$CODEBUILD_WEBHOOK_TRIGGER" =~ ^tag\/[0-9]\.[0-9]\.[0-9](\-(pre|testing
make build-from-github
make hub-login
cd cloudy_mozdef
BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` make packer-build-github
cd ../ && BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` make hub-tagged
make BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` packer-build-github
cd ../ && make BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` hub-tagged
elif [[ "$CODEBUILD_WEBHOOK_TRIGGER" =~ ^tag\/[0-9]\.[0-9]\.[0-9](\-(prod))?$ ]]
then
echo "echo Building a production release from a tag."
@ -42,8 +42,8 @@ elif [[ "$CODEBUILD_WEBHOOK_TRIGGER" =~ ^tag\/[0-9]\.[0-9]\.[0-9](\-(prod))?$ ]]
make build-from-github
make hub-login
cd cloudy_mozdef
BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` make packer-build-github
cd ../ && BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` make hub-tagged
make BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` packer-build-github
cd ../ && make BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` hub-tagged
# Temporary inclusion for march swarm. Remove after march 23 2019
elif [[ "branch/march_swarm" == "$CODEBUILD_WEBHOOK_TRIGGER" ]]
then
@ -52,8 +52,8 @@ elif [[ "branch/march_swarm" == "$CODEBUILD_WEBHOOK_TRIGGER" ]]
make build-from-github
make hub-login
cd cloudy_mozdef
BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` make packer-build-github
cd ../ && BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` make hub-tagged
make BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` packer-build-github
cd ../ && make BRANCH=`echo $CODEBUILD_WEBHOOK_TRIGGER | cut -d '/' -f2` hub-tagged
fi
echo "End build / test of the MozDef codebase."