Skip to content

Commit

Permalink
Make revinfo nicer and update latest
Browse files Browse the repository at this point in the history
  • Loading branch information
CatEars committed Dec 14, 2019
1 parent 0029225 commit d37f312
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ jobs:
./print_rev_info.sh > revinfo.txt
docker build . -t catears/private-note:${CIRCLE_BRANCH:1} -f dockerfile-private-note
echo "$DOCKER_PASSWORD" | docker login --username $DOCKER_USERNAME --password-stdin
docker tag catears/private-note:${CIRCLE_BRANCH:1} catears/private-note:latest
docker push catears/private-note:${CIRCLE_BRANCH:1}
docker push catears/private-note:latest
test-frontend:
docker:
Expand Down
5 changes: 3 additions & 2 deletions backend/print_rev_info.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
git branch -v --no-color
git log -n 1 --no-color
GITBRANCH=$(git symbolic-ref HEAD)
GITHASH=$(git log -n 1 --format=format:"%H")
echo "$GITBRANCH - $GITHASH"

0 comments on commit d37f312

Please sign in to comment.