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-17 16:04:13 +00:00
|
|
|
- build_repo
|
2019-06-14 17:19:09 +00:00
|
|
|
- deploy_package
|
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-17 16:04:13 +00:00
|
|
|
build_repo:
|
2019-06-17 16:04:55 +00:00
|
|
|
image: ${CI_REGISTRY}/personal/homelab/docker/arch-pkg-build:latest
|
2019-06-17 16:05:29 +00:00
|
|
|
stage: build_repo
|
2019-06-17 16:04:13 +00:00
|
|
|
script:
|
|
|
|
- mkdir -p local-repo
|
|
|
|
- repo-add local-repo/higherlearning.db.tar.xz
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- local-repo/
|
|
|
|
|
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 17:19:09 +00:00
|
|
|
- PKG.namcap.out
|
|
|
|
|
|
|
|
deploy_package:
|
2019-06-14 17:45:27 +00:00
|
|
|
image: andthensome/awscli
|
2019-06-14 17:19:09 +00:00
|
|
|
stage: deploy_package
|
|
|
|
script:
|
2019-06-17 14:49:27 +00:00
|
|
|
- aws s3 sync . --endpoint-url=https://s3.eu-central-1.wasabisys.com s3://my-arch-repo/ --acl public-read --exclude "*" --include "*.pkg.tar.xz"
|