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

Commit 5f0d6d83 authored by Romain Hunault's avatar Romain Hunault 💻 Committed by Mohammed Althaf T
Browse files

Setup automatic update with aosp

parent a62ff904
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+18 −0
Original line number Diff line number Diff line
stages:
  - update-from-upstream

include:
  - project: 'e/templates'
    ref: master
    file: '/gitlab-ci/.gitlab-ci-import-updates-from-upstream.yml'

t:
  script:
    - 'which xmlstarlet || ( apt-get update -y && apt-get install xmlstarlet -y )'
    - git remote add aosp $AOSP_URL
    - git fetch aosp
    - git checkout $CI_COMMIT_REF_NAME
    - git merge $(curl -s https://gitlab.e.foundation/e/os/android/-/raw/$CI_COMMIT_REF_NAME/default.xml | xmlstarlet sel -T -t -m '/manifest/remote[@name="aosp"]/@revision' -v . | awk -F '/' '{print $NF}')
    - git push
  variables:
    AOSP_URL: https://android.googlesource.com/platform/packages/modules/DnsResolver/