fix drone for stable
This commit is contained in:
parent
ecb45f9c83
commit
93bfc99e40
@ -16,6 +16,7 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- tag
|
||||||
|
|
||||||
- name: deploy-testing
|
- name: deploy-testing
|
||||||
image: debian
|
image: debian
|
||||||
@ -57,9 +58,7 @@ steps:
|
|||||||
- name: deploy-stable
|
- name: deploy-stable
|
||||||
image: debian
|
image: debian
|
||||||
commands:
|
commands:
|
||||||
- apt -qq update && apt -qq install jq curl git
|
- apt-get -qq update && apt-get -qq install jq curl git > /dev/null
|
||||||
- rm -rf .git*
|
|
||||||
- rm -rf web
|
|
||||||
- sed -i 's/target_version = git/target_version = stable/' configuration.default.ini
|
- sed -i 's/target_version = git/target_version = stable/' configuration.default.ini
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
- version=$(git describe --abbrev=0 --tags)
|
- version=$(git describe --abbrev=0 --tags)
|
||||||
@ -67,6 +66,8 @@ steps:
|
|||||||
- echo $version > /tmp/botamusique/version
|
- echo $version > /tmp/botamusique/version
|
||||||
- sed -i "s/version = 'git'/version = '$version'/" mumbleBot.py
|
- sed -i "s/version = 'git'/version = '$version'/" mumbleBot.py
|
||||||
- curl --silent "https://api.github.com/repos/azlux/botamusique/releases/latest" | jq -r '.body' > /tmp/botamusique/changelog
|
- curl --silent "https://api.github.com/repos/azlux/botamusique/releases/latest" | jq -r '.body' > /tmp/botamusique/changelog
|
||||||
|
- rm -rf .git*
|
||||||
|
- rm -rf web
|
||||||
- tar -czf /tmp/botamusique/sources-stable.tar.gz .
|
- tar -czf /tmp/botamusique/sources-stable.tar.gz .
|
||||||
volumes:
|
volumes:
|
||||||
- name: repo
|
- name: repo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user