Commit 780a7344 authored by Romain Hunault's avatar Romain Hunault

fix ssh issue

parent 5bd0dc44
......@@ -4,14 +4,8 @@ stages:
- update
before_script:
- 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"
- git config --global user.name "${GITLAB_USER_NAME}"
- git config --global user.email "${GITLAB_USER_EMAIL}"
udpate-apk:
stage: update
......@@ -42,4 +36,4 @@ udpate-apk:
sed -i -E 's/LOCAL_SRC_FILES := (.*\.apk)/LOCAL_SRC_FILES := '$FILE'/g' Android.mk
fi
- git commit -a -m "$PROJECT update"
- git push origin $CI_COMMIT_REF_NAME
- git push ssh://git@gitlab.eelo.io:2222/eelo/android_prebuilts_prebuiltapks.git $CI_COMMIT_REF_NAME
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