فهرست منبع

ci: release glibc

Signed-off-by: longjin <longjin@DragonOS.org>
longjin 1 ماه پیش
والد
کامیت
7a779bf370
2فایلهای تغییر یافته به همراه31 افزوده شده و 1 حذف شده
  1. 30 0
      .cnb.yml
  2. 1 1
      docker/Dockerfile.ubuntu2404

+ 30 - 0
.cnb.yml

@@ -0,0 +1,30 @@
+release_*:
+  tag_push:
+    - name: build_in_ubuntu2404
+      runner:
+        cpus: 1
+      docker:
+        image: docker.cnb.cool/dragonos-community/deb-downloader:ubuntu2404-250511
+      git:
+        enable: true
+      env:
+        IN_DOCKER: 0
+      stages:
+        - name: glibc_ubuntu2404
+          if: |
+              bash -c "[[ "${CNB_BRANCH}" == release_glibc_ubuntu2404_* ]]"
+
+          jobs:
+            - name: build
+              script:
+                - echo "Building in Ubuntu 24.04"
+                - bash -c "pushd ./ && cd packages/glibc-ubuntu2404 && bash pack.sh && popd"
+            - name: upload_release
+              type: git:release
+              options:
+                title: ${CNB_BRANCH}
+            - name: release 上传附件
+              image: cnbcool/attachments:latest
+              settings:
+                attachments:
+                  - "./output/*.tar.xz"

+ 1 - 1
docker/Dockerfile.ubuntu2404

@@ -2,6 +2,6 @@ FROM ubuntu:24.04
 
 COPY ./ubuntu2404.sources /etc/apt/sources.list.d/ubuntu.sources
 
-RUN apt-get clean all && apt-get update && apt-get install -y python3 python3-pip apt-rdepends && ln -s /usr/bin/python3 /usr/bin/python
+RUN apt-get clean all && apt-get update && apt-get install -y python3 python3-pip apt-rdepends sudo && ln -s /usr/bin/python3 /usr/bin/python
 
 WORKDIR /app