Commit f6c663fa authored by Romain Hunault's avatar Romain Hunault

Ok

parent 84caeb29
......@@ -4,8 +4,14 @@ stages:
- update
before_script:
- git config --global user.name "${GITLAB_USER_NAME}"
- git config --global user.email "${GITLAB_USER_EMAIL}"
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- git config --global user.email "mr.robot@eelo.io"
- git config --global user.name "Mr. Robot"
udpate-apk:
stage: update
......@@ -30,6 +36,7 @@ udpate-apk:
- cd $PROJECT
- echo ">> [$(date)] Download file"
- wget --header "JOB-TOKEN:$CI_JOB_TOKEN" $URL
- ls -l
- |
if [ ! $(grep $FILE Android.mk) ]
then
......@@ -41,3 +48,6 @@ udpate-apk:
fi
- git commit -a -m "$PROJECT update"
- git push ssh://git@gitlab.eelo.io:2222/eelo/android_prebuilts_prebuiltapks.git $CI_COMMIT_REF_NAME
if [ ! $(grep app-release-unsigned.apk Android.mk) ] then ; echo "toto"; fi ;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment