.gitlab-ci.yml: get the device name from the deviceinfo file

This commit is contained in:
Alberto Mardegan
2021-01-24 23:55:49 +03:00
committed by TheKit
parent ee3bdc53d7
commit 3d4b59603c

View File

@@ -16,7 +16,8 @@ flashable:
script:
- apt update
- apt install -y img2simg jq sudo wget xz-utils
- ./build/fetch-and-prepare-latest-ota.sh "16.04/arm64/android9/devel" "beryllium" ota
- DEVICE="$(source deviceinfo && echo $deviceinfo_codename)"
- ./build/fetch-and-prepare-latest-ota.sh "16.04/arm64/android9/devel" "$DEVICE" ota
- mkdir -p out
- ./build/system-image-from-ota.sh ota/ubuntu_command out
artifacts:
@@ -30,7 +31,8 @@ devel-flashable:
script:
- apt update
- apt install -y img2simg jq sudo wget xz-utils
- ./build/prepare-fake-ota.sh out/device_beryllium.tar.xz ota
- DEVICE="$(source deviceinfo && echo $deviceinfo_codename)"
- ./build/prepare-fake-ota.sh out/device_$DEVICE.tar.xz ota
- mkdir -p out
- ./build/system-image-from-ota.sh ota/ubuntu_command out
artifacts: