forked from rockchip-linux/kernel
-
Notifications
You must be signed in to change notification settings - Fork 57
/
.gitlab-ci.yml
48 lines (38 loc) · 1.1 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
image: ayufan/rock64-dockerfiles:x86_64
variables:
GITHUB_USER: ayufan-rock64
GITHUB_REPO: linux-kernel
USE_CCACHE: "true"
CCACHE_DIR: "/data/shared/ccache"
stages: [build]
before_script:
- ccache -M 0 -F 0
build:
stage: build
only:
- /^release-\d+\.\d+\.\d+$/
script:
- export RELEASE=$((1000+$CI_PIPELINE_IID))
- ./dev-make kernel-package
- |
set -x
export RELEASE_NAME="$(./dev-make version)"
export RELEASE_TITLE="$(./dev-make version)"
export DESCRIPTION="$CI_PROJECT_URL/pipelines/$CI_PIPELINE_ID"
github-release release \
--tag "${RELEASE_NAME}" \
--name "${RELEASE_TITLE}" \
--description "${DESCRIPTION}" \
--target "${CI_COMMIT_SHA}" \
--draft
for i in ../*$(./dev-make info)*.deb; do
github-release upload \
--tag "${RELEASE_NAME}" \
--name "$(basename "${i}")" \
--file "${i}"
done
github-release edit \
--tag "${RELEASE_NAME}" \
--name "${RELEASE_TITLE}" \
--description "${DESCRIPTION}"
rm ../*$(./dev-make info)*.deb