mirror of
https://github.com/QSCTech/zjunet.git
synced 2026-01-22 03:34:48 +08:00
Update .gitlab-ci.yml file
This commit is contained in:
parent
9b7f791fd4
commit
cfd6c16f60
23
.gitlab-ci.yml
Normal file
23
.gitlab-ci.yml
Normal file
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user