Skip to content
Permalink
Browse files

Update main pipeline

  • Loading branch information...
rogeriochaves committed Jun 16, 2018
1 parent f591fb1 commit 5d4da180acabffc4b8b4bc8a1178595b1fe3deb6
Showing with 45 additions and 17 deletions.
  1. +27 −1 .circleci/config.yml
  2. +8 −7 api/.circleci/config.yml
  3. +9 −8 robinho/.circleci/config.yml
  4. +1 −1 robinho/README.md
@@ -101,6 +101,19 @@ jobs:
echo $HEROKU_KEY | docker login --username=_ --password-stdin registry.heroku.com
docker tag fakenewsdetector/api registry.heroku.com/fake-news-detector-api/web
docker push registry.heroku.com/fake-news-detector-api/web

docker run --rm fakenewsdetector/api curl -n -X PATCH https://api.heroku.com/apps/fake-news-detector-api/formation \
-d "{
\"updates\": [
{
\"type\": \"web\",
\"docker_image\": \"$(docker inspect registry.heroku.com/fake-news-detector-api/web --format={{.Id}})\"
}
]
}" \
-H "Content-Type: application/json" \
-H "Accept: application/vnd.heroku+json; version=3.docker-releases" \
-H "Authorization: Bearer $HEROKU_KEY"
fi

extension:
@@ -148,9 +161,9 @@ jobs:


robinho:
working_directory: ~/monorepo/robinho
docker:
- image: docker
working_directory: ~/monorepo/robinho
steps:
- checkout: { path: ~/monorepo }
- attach_workspace: { at: . }
@@ -184,6 +197,19 @@ jobs:
echo $HEROKU_KEY | docker login --username=_ --password-stdin registry.heroku.com
docker tag fakenewsdetector/robinho registry.heroku.com/robinho/web
docker push registry.heroku.com/robinho/web

docker run --rm fakenewsdetector/robinho curl -n -X PATCH https://api.heroku.com/apps/robinho/formation \
-d "{
\"updates\": [
{
\"type\": \"web\",
\"docker_image\": \"$(docker inspect registry.heroku.com/robinho/web --format={{.Id}})\"
}
]
}" \
-H "Content-Type: application/json" \
-H "Accept: application/vnd.heroku+json; version=3.docker-releases" \
-H "Authorization: Bearer $HEROKU_KEY"
fi

site:
@@ -33,15 +33,16 @@ api:
docker tag fakenewsdetector/api registry.heroku.com/fake-news-detector-api/web
docker push registry.heroku.com/fake-news-detector-api/web
curl -n -X PATCH https://api.heroku.com/apps/fake-news-detector-api/formation \
-d '{
"updates": [
docker run --rm fakenewsdetector/api curl -n -X PATCH https://api.heroku.com/apps/fake-news-detector-api/formation \
-d "{
\"updates\": [
{
"type": "web",
"docker_image": "$(docker inspect registry.heroku.com/fake-news-detector-api/web --format={{.Id}})"
\"type\": \"web\",
\"docker_image\": \"$(docker inspect registry.heroku.com/fake-news-detector-api/web --format={{.Id}})\"
}
]
}' \
}" \
-H "Content-Type: application/json" \
-H "Accept: application/vnd.heroku+json; version=3.docker-releases"
-H "Accept: application/vnd.heroku+json; version=3.docker-releases" \
-H "Authorization: Bearer $HEROKU_KEY"
fi
@@ -1,7 +1,7 @@
robinho:
working_directory: ~/monorepo/robinho
docker:
- image: docker
working_directory: ~/monorepo/robinho
steps:
- checkout: { path: ~/monorepo }
- attach_workspace: { at: . }
@@ -36,15 +36,16 @@ robinho:
docker tag fakenewsdetector/robinho registry.heroku.com/robinho/web
docker push registry.heroku.com/robinho/web
curl -n -X PATCH https://api.heroku.com/apps/robinho/formation \
-d '{
"updates": [
docker run --rm fakenewsdetector/robinho curl -n -X PATCH https://api.heroku.com/apps/robinho/formation \
-d "{
\"updates\": [
{
"type": "web",
"docker_image": "$(docker inspect registry.heroku.com/robinho/web --format={{.Id}})"
\"type\": \"web\",
\"docker_image\": \"$(docker inspect registry.heroku.com/robinho/web --format={{.Id}})\"
}
]
}' \
}" \
-H "Content-Type: application/json" \
-H "Accept: application/vnd.heroku+json; version=3.docker-releases"
-H "Accept: application/vnd.heroku+json; version=3.docker-releases" \
-H "Authorization: Bearer $HEROKU_KEY"
fi
@@ -68,7 +68,7 @@ Then use the saved model to do predictions, by running the Robinho bot in the te
```sh
python3 .
> Chora bandidagem, chora turma dos direitos humanos. Michel Temer acaba de sancionar...
> Chora bandidagem, chora turma dos direitos humanos. Michel Temer acaba de sancionar o projeto de lei aprovado pelo...
Looks like Extremely Biased

0 comments on commit 5d4da18

Please sign in to comment.
You can’t perform that action at this time.