drone-sigh #57

Merged
AmineB merged 24 commits from drone-sigh into master 2022-09-14 10:32:01 +00:00
3 changed files with 28 additions and 5 deletions
Showing only changes of commit 7899fc4127 - Show all commits

View File

@ -24,6 +24,25 @@ steps:
- apt-get update && apt-get install -y git
- ./build.sh --publish --from-ci
- name: git-push
image: appleboy/drone-git-push
settings:
remote: root@aminecmi+giteaadmin@pm.me:Louvorg/ReaderForSelfoss-multiplatform.git
followtags: true
ssh_key:
from_secret: giteaKey
- name: scpFiles
image: appleboy/drone-scp
settings:
host: amine-louveau.fr
username: ubuntu
key:
from_secret: privateKey
port: 22
target: /home/ubuntu/
source: version.txt
trigger:
event:
- promote

View File

@ -21,7 +21,7 @@ VERSION="${INITIAL_VERSION}${TODAYS_VERSION}"
PARAMS_EXCEPT_PUBLISH=$(echo $1 | sed 's/\-\-publish//')
./version.sh ${VERSION} ${PARAMS_EXCEPT_PUBLISH}
./version.sh ${VERSION} ${PARAMS_EXCEPT_PUBLISH} $@
if [[ "$@" == *'--publish'* ]]
then

View File

@ -4,8 +4,12 @@
echo "Creating tag $@"
TAG="v$@"
git tag ${TAG}
git tag -a ${TAG}
echo "Pushing tag"
git push origin ${TAG}
if [[ "$@" == *'--from-ci'* ]]
then
echo "Tag created. HANDLE IN CI"
else
echo "Pushing tag"
git push origin ${TAG}
fi