mirror of
https://github.com/alrayyes/st.git
synced 2024-11-24 20:06:22 +00:00
Update .gitlab-ci.yml
This commit is contained in:
parent
cf55b76460
commit
d9cef171e4
1 changed files with 34 additions and 9 deletions
|
@ -1,12 +1,37 @@
|
||||||
|
image: ${CI_REGISTRY}/personal/homelab/docker/arch-pkg-build:latest
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- compile
|
- check_pkgbuild
|
||||||
|
- build_package
|
||||||
|
- install_package
|
||||||
|
- check_package
|
||||||
|
|
||||||
services:
|
check_pkgbuild:
|
||||||
- docker:dind
|
stage: check_pkgbuild
|
||||||
|
script:
|
||||||
|
- namcap PKGBUILD > PKGBUILD.namcap.out
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- PKGBUILD.namcap.out
|
||||||
|
|
||||||
build:package:
|
build_package:
|
||||||
stage: compile
|
stage: build_package
|
||||||
image: registry.higherlearning.eu/personal/homelab/docker/arch-pkg-build
|
script:
|
||||||
script:
|
- makepkg --syncdeps --noconfirm --log --check
|
||||||
- pacman -Sy
|
artifacts:
|
||||||
- sudo -u builduser bash -c 'makepkg -s'
|
paths:
|
||||||
|
- "*.log"
|
||||||
|
- "*.pkg.tar.xz"
|
||||||
|
|
||||||
|
install_package:
|
||||||
|
stage: install_package
|
||||||
|
script:
|
||||||
|
- sudo pacman -U *.pkg.tar.xz
|
||||||
|
|
||||||
|
check_package:
|
||||||
|
stage: check_package
|
||||||
|
script:
|
||||||
|
- namcap *.pkg.tar.xz > PKG.namcap.out
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- PKG.namcap.out
|
Loading…
Reference in a new issue