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

Version Path
conjur-debify-2.1.1.pre.988 image-tags
conjur-debify-2.1.1.pre.987 image-tags
conjur-debify-2.1.1.pre.971 image-tags
conjur-debify-2.1.1.pre.4 image-tags
conjur-debify-2.1.1.pre.2 image-tags
conjur-debify-2.1.1.pre.970 image-tags
conjur-debify-2.1.1.pre.967 image-tags
conjur-debify-0.0.1.pre.1 image-tags
conjur-debify-2.1.1.pre.959 image-tags
conjur-debify-2.1.1.pre.958 image-tags
conjur-debify-2.1.1.pre.9 image-tags
conjur-debify-2.1.1.pre.957 image-tags
conjur-debify-2.1.0 image-tags
conjur-debify-2.0.0 image-tags
conjur-debify-1.12.0 image-tags
conjur-debify-1.11.5 image-tags
conjur-debify-1.11.4 image-tags
conjur-debify-1.11.3 image-tags
conjur-debify-1.11.2 image-tags
conjur-debify-1.11.1 image-tags