Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
applications
renovate
Commits
04d47b5e
Commit
04d47b5e
authored
7 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
fix: insert correct version into package.json before docker build
Closes #1733
parent
9a36bdcf
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
hooks/post_checkout
+15
-0
15 additions, 0 deletions
hooks/post_checkout
with
15 additions
and
0 deletions
hooks/post_checkout
0 → 100644
+
15
−
0
View file @
04d47b5e
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment