aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2021-11-04 03:23:33 +0800
committerKunoiSayami <[email protected]>2021-11-04 03:32:22 +0800
commit73acc25bc709185e5f61f537ddadabb72f0891ef (patch)
tree307490f1185cc1f4b35da07252209b2266f265d0
parent82e9a9d7d6b585e80deab2fb3a88f4fe6b33c21d (diff)
fix(ci): Fix remote database not sync
Signed-off-by: KunoiSayami <[email protected]>
-rw-r--r--.gitlab-ci.yml4
-rw-r--r--repo/.hook/yay1
2 files changed, 2 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a36c756..c5fde09 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,14 +25,14 @@ build:
script:
#- echo -e '\n[archlinuxcn]\nServer = https://repo.archlinuxcn.org/$arch\n' >> /etc/pacman.conf
- - echo -e '\n[kunoisayami]\nServer = https://$REPO_REMOTE/$arch\n' >> /etc/pacman.conf
+ - bash -c "echo -e '\n[kunoisayami]\nServer = https://$REPO_REMOTE/\$arch\n' >> /etc/pacman.conf"
- pacman-key --init
# import myself key first
- curl -fL https://keys.openpgp.org/vks/v1/by-fingerprint/4A0F0C8BC709ACA4341767FB243975C8DB9656B9 | pacman-key --add -
- pacman-key --finger 4A0F0C8BC709ACA4341767FB243975C8DB9656B9
- pacman-key --lsign-key 4A0F0C8BC709ACA4341767FB243975C8DB9656B9
#- pacman --noconfirm --needed -Sy archlinuxcn-keyring
- - pacman --noconfirm --needed -Su base-devel gnupg git
+ - pacman --noconfirm --needed -Syu base-devel gnupg git
- useradd -m build
- echo 'build ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers
#- cp -r ../$CI_PROJECT_TITLE /home/build/
diff --git a/repo/.hook/yay b/repo/.hook/yay
deleted file mode 100644
index a9bf588..0000000
--- a/repo/.hook/yay
+++ /dev/null
@@ -1 +0,0 @@
-#!/bin/bash