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

Commit f0580739 authored by Romain Hunault's avatar Romain Hunault
Browse files

Setup CI to update from upstream

parent 0a0b2742
Loading
Loading
Loading
Loading
+5 −28
Original line number Diff line number Diff line
stages:
  - build
  - update-from-upstream

image:
  name: registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:latest
  entrypoint: [""]


variables:
  REPO_BRANCH: eelo-0.2
  REPO_DIRECTORY: EELO_0_2
  REPO_URL: https://gitlab.e.foundation/e/os/android.git
  PROJECT_PATH: packages/apps/Settings

build_module:
  variables:
    GIT_STRATEGY: none
  stage: build
  script:
    - cd /srv/src/${REPO_DIRECTORY}
    - source build/envsetup.sh
    - mka clean
    - repo init -u "${REPO_URL}" -b "${REPO_BRANCH}"
    - repo sync --force-sync -d
    - cd packages/apps/Settings
    - git fetch e
    - git checkout ${CI_COMMIT_SHA}
    - mma
    - repo sync --force-sync -d .
    - mka clean
include:
  - project: 'e/priv/os/build'
    ref: master
    file: '/templates/.gitlab-ci-update-from-upstream.yml'