Sha256: d21a6b0ccf53e6d310ed5f87fdd7ff83ac81544dffee43d2b3fedf59d0a82bf6
Contents?: true
Size: 526 Bytes
Versions: 20
Compression:
Stored size: 526 Bytes
Contents
#!/bin/bash -e : ${BRANCH_NAME:=$(git symbolic-ref --short HEAD)} show_master_tags() { IFS=. read MAJOR MINOR PATCH <VERSION TAG="$MAJOR.$MINOR.$PATCH" echo "latest $TAG $MAJOR.$MINOR" } show_branch_tags() { # tail and tr, to remove the grottiness from the detect-version # output local version="$(DEBIFY_IMAGE=debify:$(<VERSION) ./docker-debify detect-version | tail -1 | tr -d '\r')" echo "$BRANCH_NAME $version" } if [[ "$BRANCH_NAME" == "master" ]]; then show_master_tags else show_branch_tags fi
Version data entries
20 entries across 20 versions & 1 rubygems