Skip to content
Snippets Groups Projects
Commit 3ac97d02 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch 'commit-hash-develop' into 'develop'

Commit hash develop

See merge request funkwhale/funkwhale!524
parents abb750e9 43e096b1
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
# -*- coding: utf-8 -*-
__version__ = "0.17"
__version__ = "0.18-dev"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num
......
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment