linux-firmware/.gitlab-ci.yml
Josh Boyer 20d250e3e9
Merge branch 'mlimonci/make-dist' into 'main'
Add new `make dist` target

See merge request kernel-firmware/linux-firmware!4
2023-09-06 11:15:24 +00:00

30 lines
717 B
YAML

check-commits:
stage: test
image: registry.gitlab.com/kernel-firmware/linux-firmware
rules:
- if: $CI_MERGE_REQUEST_ID
script:
- ci-fairy check-commits --signed-off-by
pre-commit:
stage: test
image: registry.gitlab.com/kernel-firmware/linux-firmware
script:
- pre-commit run --all-files
release:
stage: deploy
rules:
- if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
when: never
- if: $RELEASE_TOKEN
artifacts:
paths:
- dist/*
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
- make dist