#!/usr/bin/env bash

set -e

source s3cli/ci/tasks/utils.sh


semver=`cat version-semver/number`
timestamp=`date -u +"%Y-%m-%dT%H:%M:%SZ"`

pushd s3cli > /dev/null
  git_rev=`git rev-parse --short HEAD`
  version="${semver}-${git_rev}-${timestamp}"

  . .envrc

  echo -e "\n building artifact..."
  go build -ldflags "-X main.version ${version}" -o "out/s3-${version}-linux-amd64" s3cli/s3
popd > /dev/null


#!/usr/bin/env bash

set -e

source s3cli/ci/tasks/utils.sh


semver=`cat version-semver/number`
timestamp=`date -u +"%Y-%m-%dT%H:%M:%SZ"`

pushd s3cli > /dev/null
  git_rev=`git rev-parse --short HEAD`
  version="${semver}-${git_rev}-${timestamp}"

  . .envrc

  echo -e "\n building artifact..."
  go build -ldflags "-X main.version ${version}" -o "out/s3-${semver}-linux-amd64" s3cli/s3
popd > /dev/null


Change filename to have an actual semantic version.
Change filename to have an actual semantic version.

Otherwise Concourse breaks.

[#107225486](https://www.pivotaltracker.com/story/show/107225486)

Signed-off-by: Tom Viehman <5679b71bf627e451adcd139589ab3c908dbbb1f3@gmail.com>
