aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2021-11-01 22:30:19 +0800
committerKunoiSayami <[email protected]>2021-11-01 22:30:19 +0800
commit73dd2af79f4695e658f56ad8e1fd1429e074238c (patch)
tree9e4c27ffec341b4868257a9c2533ffe4e88874b5 /.gitlab-ci.yml
parent1e6b0bcbde4cc242269997065e8ddab26ca5dbc6 (diff)
refactor(script): Change the way of retrieve aur dependencies and gpg key
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml9
1 files changed, 4 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index de7e558..a9a922e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,17 +19,16 @@ build:
- 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 --noconfirm --needed -Syu archlinuxcn-keyring 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