diff options
| author | Kunoi Sayami <[email protected]> | 2021-11-01 23:13:09 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-01 23:13:09 +0800 |
| commit | 9a3255c44047fcea27f6922639585aa5ddae32e6 (patch) | |
| tree | b1bff8073139f5a2643e4643ebb8fb7b7ed2ae0c /.gitlab-ci.yml | |
| parent | 1e6b0bcbde4cc242269997065e8ddab26ca5dbc6 (diff) | |
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 <[email protected]>
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 13 |
1 files changed, 8 insertions, 5 deletions
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 |
