git is missing
This commit is contained in:
parent
f46a2dac03
commit
c8a543130e
14
.drone.yml
14
.drone.yml
@ -19,6 +19,7 @@ steps:
|
|||||||
- name: deploy-testing
|
- name: deploy-testing
|
||||||
image: debian
|
image: debian
|
||||||
commands:
|
commands:
|
||||||
|
- apt -qq update && apt -q -y install git
|
||||||
- rm -rf .git*
|
- rm -rf .git*
|
||||||
- rm -rf web
|
- rm -rf web
|
||||||
- sed -i 's/target_version = git/target_version = testing/' configuration.default.ini
|
- sed -i 's/target_version = git/target_version = testing/' configuration.default.ini
|
||||||
@ -51,30 +52,21 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
- name: fetch
|
|
||||||
image: alpine/git
|
|
||||||
commands:
|
|
||||||
- git fetch --tags
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
- name: deploy-stable
|
- name: deploy-stable
|
||||||
image: debian
|
image: debian
|
||||||
commands:
|
commands:
|
||||||
- apt -qq update && apt -q -y install jq curl
|
- apt -qq update && apt -q -y install jq curl git
|
||||||
- rm -rf .git*
|
- rm -rf .git*
|
||||||
- rm -rf web
|
- 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
|
||||||
- version=$(git describe --abbrev=0 --tags)
|
- version=$(git describe --abbrev=0 --tags)
|
||||||
- echo "version is $version"
|
- echo "version is $version"
|
||||||
- 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
|
||||||
- tar -czf /tmp/botamusique/sources-stable.tar.gz .
|
- tar -czf /tmp/botamusique/sources-stable.tar.gz .
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: repo
|
- name: repo
|
||||||
path: /tmp/botamusique/
|
path: /tmp/botamusique/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user