From cfd6c16f60fc46a20ccce4951dcd8cd92be9977f Mon Sep 17 00:00:00 2001 From: Azuk 443 Date: Sat, 9 Sep 2023 10:26:26 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c082aab --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,23 @@ +image: ubuntu:jammy + +stages: + - build + +compile: + stage: build + only: + - tags + script: + - sed -i 's|http.*.ubuntu.com|http://mirrors.zju.edu.cn|' /etc/apt/sources.list + - apt-get update && apt-get -y --no-install-recommends install ca-certificates build-essential fakeroot git dpkg-dev rpm python3 python-is-python3 python3-urllib3 + - mkdir artifacts + - pushd build + - ./build.sh + - popd + - cp build/debian/*.deb artifacts/ + - cp build/openwrt/*.opk artifacts/ + - cp build/rpm/*.rpm artifacts/ + artifacts: + paths: + - /artifacts +