fix order
This commit is contained in:
parent
c8a543130e
commit
df4fa8f300
@ -19,14 +19,14 @@ steps:
|
|||||||
- name: deploy-testing
|
- name: deploy-testing
|
||||||
image: debian
|
image: debian
|
||||||
commands:
|
commands:
|
||||||
- apt -qq update && apt -q -y install git
|
- apt-get -qq update && apt-get -qq install git > /dev/null
|
||||||
- rm -rf .git*
|
|
||||||
- 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
|
||||||
- version=$(git rev-parse HEAD)
|
- version=$(git rev-parse HEAD)
|
||||||
- echo "current git commit is $version"
|
- echo "current git commit is $version"
|
||||||
- echo $version > /tmp/botamusique/testing-version
|
- echo $version > /tmp/botamusique/testing-version
|
||||||
- sed -i "s/version = 'git'/version = '$version'/" mumbleBot.py
|
- sed -i "s/version = 'git'/version = '$version'/" mumbleBot.py
|
||||||
|
- rm -rf .git*
|
||||||
|
- rm -rf web
|
||||||
- tar -czf /tmp/botamusique/sources-testing.tar.gz .
|
- tar -czf /tmp/botamusique/sources-testing.tar.gz .
|
||||||
volumes:
|
volumes:
|
||||||
- name: repo
|
- name: repo
|
||||||
@ -56,7 +56,7 @@ steps:
|
|||||||
- name: deploy-stable
|
- name: deploy-stable
|
||||||
image: debian
|
image: debian
|
||||||
commands:
|
commands:
|
||||||
- apt -qq update && apt -q -y install jq curl git
|
- apt -qq update && apt -qq 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user