diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2023-09-18 22:32:59 -0500 |
---|---|---|
committer | Mario Limonciello <mario.limonciello@amd.com> | 2023-10-02 14:19:30 -0500 |
commit | ce33c671b4d0f0f414ec0a2ab8b8d83a94b17fb4 (patch) | |
tree | 3edbda58d845efffc6e8878838be76a3270c3247 | |
parent | cef80743ca63491ff5a07976e45ef9be2fcc41f7 (diff) | |
download | linux-firmware-ce33c671b4d0f0f414ec0a2ab8b8d83a94b17fb4.tar.gz |
Build debian and fedora images
Artifacts only released on tags.
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
-rw-r--r-- | .gitlab-ci.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6e4c0264..4d19ab3e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,12 @@ +.debcommon: &debcommon + - apt update + - apt install build-essential debhelper git python3-jinja2 -y + - make deb + +.rpmcommon: &rpmcommon + - dnf install make git python3-jinja2 rpmdevtools -y + - make rpm + check-commits: stage: test image: registry.gitlab.com/kernel-firmware/linux-firmware @@ -16,6 +25,52 @@ pre-commit: script: - pre-commit run --all-files +rpm: + stage: test + image: fedora + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' + - if: $CI_COMMIT_TAG + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + script: + - *rpmcommon + +deb: + stage: test + image: debian + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' + - if: $CI_COMMIT_TAG + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + script: + - *debcommon + +deb-release: + stage: deploy + image: debian + rules: + - if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME + when: never + - if: $RELEASE_TOKEN + artifacts: + paths: + - dist/* + script: + - *debcommon + +rpm-release: + stage: deploy + image: fedora + rules: + - if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME + when: never + - if: $RELEASE_TOKEN + artifacts: + paths: + - dist/* + script: + - *rpmcommon + release: stage: deploy rules: |