blob: 99f53b2814c1443a7cdd562466ecdb2be9f52fa2 (
plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
stages:
- build
.build:
stage: build
image: crops/poky
before_script:
- export PATH=~/.local/bin:$PATH
- wget https://bootstrap.pypa.io/get-pip.py
- python3 get-pip.py
- python3 -m pip install kas
- wget -q 'https://downloads.rclone.org/rclone-current-linux-amd64.zip'
- unzip -q rclone-current-linux-amd64.zip
- mv rclone-*-linux-amd64/rclone ~/.local/bin/
- rm -rf rclone-*-linux-amd64*
after_script:
- rm -rf build
artifacts:
name: images
expose_as: images
expire_in: 3 days
paths:
- images
cache:
paths:
- layers
bbe-poky:
extends: .build
script:
- ./scripts/ci-build.sh $CI_JOB_NAME core-image-base
- |
if [[ -n "$B2_KEY_ID" ]]; then
rclone config create b2 b2 account $B2_KEY_ID key $B2_APP_KEY > /dev/null
rclone copy --ignore-existing build/sstate-cache/ b2:sc-yocto/poky/sstate/
rclone copy --ignore-existing build/tmp/deploy/sources/mirror/ b2:sc-yocto/mirror/
fi
bbe-arago:
extends: .build
image: registry.gitlab.com/sancloudltd/buildimg/gcc-arm-9.2:latest
script:
- ./scripts/ci-build.sh $CI_JOB_NAME tisdk-base-image tisdk-default-image
- |
if [[ -n "$B2_KEY_ID" ]]; then
rclone config create b2 b2 account $B2_KEY_ID key $B2_APP_KEY > /dev/null
rclone copy --ignore-existing build/sstate-cache/ b2:sc-yocto/arago/sstate/
rclone copy --ignore-existing build/tmp/deploy/sources/mirror/ b2:sc-yocto/mirror/
fi
|