Skip to content

Commit

Permalink
install semver
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Sjostrom committed Aug 29, 2019
1 parent 1f01e68 commit 925e49e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ RUN apt-get update && \
apt-get install -y curl

COPY ./contrib/semver ./contrib/semver
RUN chmod +x ./contrib/semver
RUN install ./contrib/semver /usr/local/bin
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
2 changes: 1 addition & 1 deletion contrib/semver
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail

Expand Down
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ fi
# get commit logs and determine home to bump the version
# supports #major, #minor, #patch (anything else will be 'minor')
case "$log" in
*#major* ) new=$(./contrib/semver bump major $t);;
*#patch* ) new=$(./contrib/semver bump patch $t);;
* ) new=$(./contrib/semver bump minor $t);;
*#major* ) new=$(semver bump major $t);;
*#patch* ) new=$(semver bump patch $t);;
* ) new=$(semver bump minor $t);;
esac

echo $new
Expand Down

0 comments on commit 925e49e

Please sign in to comment.