Skip to content
Snippets Groups Projects
Commit 04d47b5e authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: insert correct version into package.json before docker build

Closes #1733
parent 9a36bdcf
Branches
Tags
No related merge requests found
#!/bin/bash
set -e
# We need to parse $IMAGE_NAME because $CACHE_TAG is broken on Docker Hub post_push
IFS=: read DOCKER_REPO CACHE_TAG <<< $IMAGE_NAME
echo "repo=${DOCKER_REPO}"
echo "tag=${CACHE_TAG}"
# Write the tag to package.json>version so that "renovate --version" is correct
sed -i.bak "s/0.0.0-semantic-release/${CACHE_TAG}/" package.json
rm -f package.json.bak
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment