aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2021-10-26 00:36:01 +0800
committerKunoiSayami <[email protected]>2021-10-26 00:36:01 +0800
commit831a6d7aba503927e2270365a3253a877eae3e14 (patch)
tree6fe99495c4ed991fd4a8ad9368f371a2656cf0ca
parent98eeddcfb67dd6e75bec4f09d160956c6c912072 (diff)
feat(script): Support auto re-build from specify commit message
Signed-off-by: KunoiSayami <[email protected]>
-rw-r--r--README.md8
-rwxr-xr-xci-upload.sh4
-rwxr-xr-xpkgbuild.sh2
3 files changed, 9 insertions, 5 deletions
diff --git a/README.md b/README.md
index 143b9b2..143e588 100644
--- a/README.md
+++ b/README.md
@@ -7,9 +7,9 @@ KunoiSayami's Arch Linux Community Repository
```
[kunoisayami]
-Server = https://MASKED/repo
+Server = https://MASKED/$repo
```
-to your /etc/pacman.conf .
+to your `/etc/pacman.conf` .
#### Import PGP Keys:
@@ -18,3 +18,7 @@ curl -fL https://keys.openpgp.org/vks/v1/by-fingerprint/4A0F0C8BC709ACA4341767FB
sudo pacman-key --finger 4A0F0C8BC709ACA4341767FB243975C8DB9656B9
sudo pacman-key --lsign-key 4A0F0C8BC709ACA4341767FB243975C8DB9656B9
```
+
+### For developers:
+
+Use commit message starts with `fix(repo)` will let CI/CD rebuild all packages.
diff --git a/ci-upload.sh b/ci-upload.sh
index 5f2ae57..9aa5f1a 100755
--- a/ci-upload.sh
+++ b/ci-upload.sh
@@ -19,9 +19,9 @@ curl -d "token=$UPLOAD_TOKEN&action=REQUIRE_CLEAN" -fsSL "$REMOTE_PATH"
pushd $PKGDEST
for file in *.pkg*; do
- echo "Start upload package $file ..."
+ echo "Start upload package $file size: $(ls -lh $file | awk '{print $5}')..."
curl -F "file=@$file" -F "token=$UPLOAD_TOKEN" -fsSL "$REMOTE_PATH"
- echo "Stop upload package $file"
+ #echo "Stop upload package $file"
done
popd
diff --git a/pkgbuild.sh b/pkgbuild.sh
index 1b44d8b..8f3fc55 100755
--- a/pkgbuild.sh
+++ b/pkgbuild.sh
@@ -53,7 +53,7 @@ if [ $# -gt 0 ] && [ "$1" = "--diff" ]; then
exit 0
fi
-if [ $# -gt 0 ] && [ "$1" = "--all" ]; then
+if [ $# -gt 0 ] && [ "$1" = "--all" ] || [[ $CI_COMMIT_TITLE =~ "fix(repo)" ]]; then
ls $PKGBUILD_DIRECTORY_BASE > "$REPO_DIFF"
else
get_diff_list