2023-08-30 03:00:04 +00:00
|
|
|
check-commits:
|
2023-08-31 02:19:49 +00:00
|
|
|
stage: test
|
2023-08-30 03:00:04 +00:00
|
|
|
image: registry.gitlab.com/kernel-firmware/linux-firmware
|
|
|
|
script:
|
|
|
|
- ci-fairy check-commits --signed-off-by
|
|
|
|
|
|
|
|
pre-commit:
|
2023-08-31 02:19:49 +00:00
|
|
|
stage: test
|
2023-08-30 03:00:04 +00:00
|
|
|
image: registry.gitlab.com/kernel-firmware/linux-firmware
|
|
|
|
script:
|
|
|
|
- pre-commit run --all-files
|
|
|
|
|
2023-08-31 02:19:49 +00:00
|
|
|
release:
|
|
|
|
stage: deploy
|
|
|
|
rules:
|
|
|
|
- if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
|
|
|
|
when: never
|
|
|
|
- if: $RELEASE_TOKEN
|
|
|
|
script:
|
|
|
|
- CI_PUSH_REPO=`echo "$CI_REPOSITORY_URL" | sed 's/^.*@/@/g'`
|
|
|
|
- git remote set-url --push origin "https://gitlab-ci-token:${RELEASE_TOKEN}$CI_PUSH_REPO"
|
|
|
|
- git tag `date "+%Y%m%d"`
|
|
|
|
- git push --tags
|