Skip to content

Commit

Permalink
Merge pull request #2503 from cloudfoundry-incubator/fix-release-pipe…
Browse files Browse the repository at this point in the history
…line

Build-args file should be JSON
  • Loading branch information
nwmac authored Jun 22, 2018
2 parents 1a2290b + e324d4f commit f3e2a69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deploy/ci/tasks/dev-releases/generate-tag-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ run:
- |
cd stratos
LATEST_TAG=$(git for-each-ref --sort=taggerdate --format '%(tag)' refs/tags | tail -1)
if [ -z ${NIGHTLY_BUILD} ]; then
LATEST_TAG=$(git for-each-ref --sort=taggerdate --format '%(tag)' refs/tags | tail -1)
else
LATEST_TAG=$(cat package.json | grep version | grep -Po "([0-9\.]?)*")-$(git log -1 --format="%h")
fi
cd ../image-tag
echo "$LATEST_TAG" > v2-alpha-tag
FILENAME="release-${LATEST_TAG}"
cat > build-args << EOF
stratos_version="${LATEST_TAG}"
{ "stratos_version": "${LATEST_TAG}" }
EOF
tar -cf ${FILENAME}.tar v2-alpha-tag build-args

0 comments on commit f3e2a69

Please sign in to comment.