From 9a3255c44047fcea27f6922639585aa5ddae32e6 Mon Sep 17 00:00:00 2001 From: Kunoi Sayami Date: Mon, 1 Nov 2021 23:13:09 +0800 Subject: feat(build): [REBUILD] Enhance AUR dependencies resolve way (#11) * refactor(script): Change the way of retrieve aur dependencies and gpg key * fix(docker): Fix docker not init pacman keys * feat(build): Add a way to reduce rebuild workload Signed-off-by: KunoiSayami --- .gitlab-ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index de7e558..7ffba06 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,20 +16,23 @@ build: expire_in: 1 day only: changes: + - .gitlab-ci.yml + - pkgbuild.sh - repo/**/* script: - - pacman --noconfirm --needed -Syu base-devel gnupg git + - echo -e '\n[archlinuxcn]\nServer = https://repo.archlinuxcn.org/$arch\n' >> /etc/pacman.conf + - pacman-key --init + - pacman --noconfirm --needed -Sy archlinuxcn-keyring + - pacman --noconfirm --needed -Su base-devel gnupg git yay - git submodule update --init - useradd -m build - echo 'build ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers #- cp -r ../$CI_PROJECT_TITLE /home/build/ #- cd /home/build/$CI_PROJECT_TITLE - - chown -R build:build ../$CI_PROJECT_TITLE - - su -c "bash -c 'cd repo/pod2man && makepkg -si --noconfirm'" build - - su -c "bash -c 'cd repo/gconf && makepkg -si --noconfirm'" build + - chown -R build:build ../$CI_PROJECT_TITLE - su -c 'echo $GPG_PRIV_KEY | base64 -d | gpg --import' build - - su -c 'BUILD_ONLY='' ./pkgbuild.sh' build + - su -c './pkgbuild.sh' build - rm -rf build/ # only push to master master trigger push -- cgit v1.3.1