Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

fix ssh issue

parent 5bd0dc44
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -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