Sha256: 6e2f747f90e11e633d8edc64b94c1328123b6a8a08b14b3a1266e485a85a6889
Contents?: true
Size: 644 Bytes
Versions: 5
Compression:
Stored size: 644 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() { VERSION=$(< VERSION) docker run --rm debify:$VERSION config script > docker-debify chmod +x docker-debify # 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
5 entries across 5 versions & 1 rubygems