1
0
mirror of https://github.com/alrayyes/st synced 2023-11-14 15:56:30 +00:00
st/.gitlab-ci.yml

40 lines
1010 B
YAML
Raw Normal View History

2019-06-12 14:58:25 +00:00
stages:
2019-06-14 14:16:27 +00:00
- check_pkgbuild
- build_package
- install_package
- check_package
2019-06-14 16:39:40 +00:00
- trigger
2019-06-14 14:16:27 +00:00
check_pkgbuild:
2019-06-14 16:39:40 +00:00
image: ${CI_REGISTRY}/personal/homelab/docker/arch-pkg-build:latest
2019-06-14 14:16:27 +00:00
stage: check_pkgbuild
script:
- namcap PKGBUILD > PKGBUILD.namcap.out
artifacts:
paths:
- PKGBUILD.namcap.out
build_package:
2019-06-14 16:39:40 +00:00
image: ${CI_REGISTRY}/personal/homelab/docker/arch-pkg-build:latest
2019-06-14 14:16:27 +00:00
stage: build_package
script:
- makepkg --syncdeps --noconfirm --log --check
artifacts:
paths:
- "*.log"
- "*.pkg.tar.xz"
2019-06-12 14:58:25 +00:00
2019-06-14 14:16:27 +00:00
check_package:
2019-06-14 16:39:40 +00:00
image: ${CI_REGISTRY}/personal/homelab/docker/arch-pkg-build:latest
2019-06-14 14:16:27 +00:00
stage: check_package
script:
- namcap *.pkg.tar.xz > PKG.namcap.out
artifacts:
paths:
2019-06-14 16:39:40 +00:00
- PKG.namcap.out
trigger:my-arch-repo:
2019-06-14 16:41:53 +00:00
image: andthensome/curl
2019-06-14 16:39:40 +00:00
stage: trigger
script:
2019-06-14 16:54:15 +00:00
- curl -X POST -F token=$ARCH_TOKEN -F ref=master -F "variables[TRIGGERER_PIPELINE_ID]=${CI_PIPELINE_ID}" http://gitlab/api/v4/projects/342/trigger/pipeline