]> git.proxmox.com Git - mirror_linux-firmware.git/blobdiff - .gitlab-ci.yml
Intel Bluetooth: Update firmware file for Intel Bluetooth Magnetor AX101
[mirror_linux-firmware.git] / .gitlab-ci.yml
index 6e4c02647d601cba39dd0464cbbbca0f8bbb8afe..362293bddace8f52c017949ed6b513dcf04ae640 100644 (file)
@@ -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,32 @@ pre-commit:
   script:
     - pre-commit run --all-files
 
+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: