-
Notifications
You must be signed in to change notification settings - Fork 7
/
.gitlab-ci.yml
34 lines (29 loc) · 1.09 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
image: ayufan/rock64-dockerfiles:x86_64
stages:
- build
variables:
# for cros_init.sh
MANIFEST_BRANCH: release-R77-12371.B
WORK_PATH: /data/chromiumos/$MANIFEST_BRANCH
# for chrome-bot and cros_set_lsb_release.py
BUILDBOT_BUILD: $CI_PIPELINE_IID
CHROMEOS_VERSION_AUSERVER: https://chromiumos.ayufan.eu/update
CHROMEOS_VERSION_DEVSERVER: https://chromiumos.ayufan.eu
CHROMEOS_VERSION_TRACK: buildbot-build
# for ./scripts/publish.sh
GITHUB_USER: ayufan-rock64
GITHUB_REPO: chromiumos-build
# GITHUB_TOKEN: defined in secret variables
# this requires GitLab Runner running in Privileged mode
image:
before_script:
- mkdir -p "$WORK_PATH"
- useradd -u 1000 -g users -m -G sudo chrome-bot
- chown chrome-bot:users "$WORK_PATH"
- sudo -EHu chrome-bot -- ./cros_init.sh "$WORK_PATH"
script:
- sudo -EHu chrome-bot -- ./cros_run.sh "$WORK_PATH" ~/trunk/src/overlays/overlay-rockpro64/do_apply_patches.sh
- sudo -EHu chrome-bot -- ./cros_run.sh "$WORK_PATH" ~/trunk/src/overlays/overlay-rockpro64/do_release_and_publish.sh
when: manual
only:
refs: [master]