Sha256: 16de2f77bb277c26cd090cfddf749a98cd93628f894ae48a4a092940c2846aa2

Contents?: true

Size: 806 Bytes

Versions: 15

Compression:

Stored size: 806 Bytes

Contents

#!/bin/bash
set -e

bundle install --path "${HOME}/bundles/${JOB_NAME}"
npm install
npm test

# Create a new tag if the version file has been updated and a tag for that
# version doesn't already exist

# Are we on master branch, we shouldn't push tags for version bump branches
MASTER_SHA=`git rev-parse origin/master`
HEAD_SHA=`git rev-parse HEAD`
if [ "$MASTER_SHA" == "$HEAD_SHA" ]; then
  # get the version from the version file
  VERSION_TAG="v`cat VERSION.txt`"

  # check to make sure the tag doesn't already exist
  if ! git rev-parse $VERSION_TAG >/dev/null 2>&1; then
    echo "Creating new tag: $VERSION_TAG"
    git tag $VERSION_TAG
    git push origin $VERSION_TAG

    # Alias branch for the most recently released tag, for easier diffing
    git push -f origin master:latest-release
  fi
fi

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
govuk_frontend_toolkit-5.0.3 app/assets/jenkins.sh
govuk_frontend_toolkit-5.0.2 app/assets/jenkins.sh
govuk_frontend_toolkit-5.0.1 app/assets/jenkins.sh
govuk_frontend_toolkit-5.0.0 app/assets/jenkins.sh
govuk_frontend_toolkit-4.18.4 app/assets/jenkins.sh
govuk_frontend_toolkit-4.18.3 app/assets/jenkins.sh
govuk_frontend_toolkit-4.18.2 app/assets/jenkins.sh
govuk_frontend_toolkit-4.18.1 app/assets/jenkins.sh
govuk_frontend_toolkit-4.18.0 app/assets/jenkins.sh
govuk_frontend_toolkit-4.17.0 app/assets/jenkins.sh
govuk_frontend_toolkit-4.16.1 app/assets/jenkins.sh
govuk_frontend_toolkit-4.16.0 app/assets/jenkins.sh
govuk_frontend_toolkit-4.15.0 app/assets/jenkins.sh
govuk_frontend_toolkit-4.14.1 app/assets/jenkins.sh
govuk_frontend_toolkit-4.14.0 app/assets/jenkins.sh