Add CircleCI build badge and a build script for master

This commit is contained in:
Victor Ng 2020-06-26 11:52:41 -04:00
Родитель 9f68630053
Коммит 558b59059f
2 изменённых файлов: 15 добавлений и 0 удалений

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

@ -1,5 +1,6 @@
# Performance Robustness Evaluation for Statistical Classifiers
[![CircleCI](https://circleci.com/gh/mozilla/presc.svg?style=svg)](https://circleci.com/gh/mozila/presc)
[![Join the chat at https://gitter.im/PRESC-outreachy/community](https://badges.gitter.im/PRESC-outreachy/community.svg)](https://gitter.im/PRESC-outreachy/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
## Overview

14
bin/build Executable file
Просмотреть файл

@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -eo pipefail
# create a version.json
printf '{"commit":"%s","version":"%s","source":"https://github.com/%s/%s","build":"%s"}\n' \
"$CIRCLE_SHA1" \
"$CIRCLE_TAG" \
"$CIRCLE_PROJECT_USERNAME" \
"$CIRCLE_PROJECT_REPONAME" \
"$CIRCLE_BUILD_URL" \
> version.json
echo "Building the docker image with the tag app:build"
docker build -t app:build .