Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Allan Nordhøy
funkwhale
Commits
43e096b1
Verified
Commit
43e096b1
authored
6 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Now include commit hash in develop builds
parent
ee4e5c24
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-0
2 additions, 0 deletions
.gitlab-ci.yml
scripts/set-api-build-metadata.sh
+9
-0
9 additions, 0 deletions
scripts/set-api-build-metadata.sh
with
11 additions
and
0 deletions
.gitlab-ci.yml
+
2
−
0
View file @
43e096b1
...
...
@@ -240,6 +240,7 @@ docker_release:
-
cp -r front/dist api/frontend
-
cd api
script
:
-
if [ "$CI_COMMIT_REF_NAME" == "develop" ]; then ./scripts/set-api-build-metadata $CI_COMMIT_SHORT_SHA; fi);
-
docker build -t $IMAGE .
-
docker push $IMAGE
only
:
...
...
@@ -257,6 +258,7 @@ build_api:
paths
:
-
api
script
:
-
if [ "$CI_COMMIT_REF_NAME" == "develop" ]; then ./scripts/set-api-build-metadata $CI_COMMIT_SHORT_SHA; fi);
-
chmod -R 750 api
-
echo Done!
only
:
...
...
This diff is collapsed.
Click to expand it.
scripts/set-api-build-metadata.sh
0 → 100755
+
9
−
0
View file @
43e096b1
#!/bin/bash -eu
# given a commit hash, will append this to the version number stored
# in api/funkwhale_api/__init__.py
commit
=
$1
suffix
=
"+git.
$commit
"
replace
=
"__version__ =
\"\1
${
suffix
}
\"
"
file
=
"api/funkwhale_api/__init__.py"
sed
-i
-E
's@__version__ = \"(.*)\"@'
"
$replace
"
'@'
$file
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