1
0
mirror of https://gitlab.com/ykkzde/posy-cursors synced 2024-10-27 20:44:10 +00:00

Update .gitlab-ci.yml

This commit is contained in:
Dmitry Porunov 2019-11-01 05:23:35 +04:00
parent 24267a06f5
commit 1902ec6163

View File

@ -19,7 +19,7 @@ package-aur:
- echo "Checking sha256sum checksums" - echo "Checking sha256sum checksums"
- 'sourceSHA=$(curl -sSL "$sourceURL" | sha256sum | cut -d" " -f1)' - 'sourceSHA=$(curl -sSL "$sourceURL" | sha256sum | cut -d" " -f1)'
# Update PKGBUILD parameters: version, source URL and SHA sum # Update PKGBUILD version, source URL and sha256sum
- echo "Updating PKGBUILDS with release information..." - echo "Updating PKGBUILDS with release information..."
- sed "s/^pkgver=.*\$/pkgver=$_version/" -i posy-cursors/PKGBUILD - sed "s/^pkgver=.*\$/pkgver=$_version/" -i posy-cursors/PKGBUILD
- sed "s/^source=(\"\(.*\)::.*\").*\$/source=(\"\1::$(echo $sourceURL | sed 's/\//\\\//g')\")/" -i posy-cursors/PKGBUILD - sed "s/^source=(\"\(.*\)::.*\").*\$/source=(\"\1::$(echo $sourceURL | sed 's/\//\\\//g')\")/" -i posy-cursors/PKGBUILD
@ -28,14 +28,14 @@ package-aur:
- echo "Installing Arch" - echo "Installing Arch"
- pacman -Syu --noconfirm sudo base-devel openssh git openssl - pacman -Syu --noconfirm sudo base-devel openssh git openssl
# Make AUR package # makepkg and .SRCINFO
- cd posy-cursors/ - cd posy-cursors/
- echo "makepkg" - echo "makepkg"
- sudo -u nobody makepkg -c - sudo -u nobody makepkg -c
- sudo -u nobody makepkg --printsrcinfo > .SRCINFO - sudo -u nobody makepkg --printsrcinfo > .SRCINFO
- cd .. - cd ..
# Set up SSH for publishing # Configure SSH
- mkdir -p /root/.ssh - mkdir -p /root/.ssh
- cp ./aur.pub /root/.ssh/id_rsa.pub - cp ./aur.pub /root/.ssh/id_rsa.pub
- echo "$sshAUR" | base64 -d > /root/.ssh/id_rsa - echo "$sshAUR" | base64 -d > /root/.ssh/id_rsa
@ -49,7 +49,7 @@ package-aur:
- git config --global user.name "Dmitry Porunov" - git config --global user.name "Dmitry Porunov"
- git config --global user.email "dmitry@auteiy.me" - git config --global user.email "dmitry@auteiy.me"
# Publish main package: clone AUR repo, commit update and push # Clone, commit and push
- git clone ssh://aur@aur.archlinux.org/posy-cursors.git aur-posy-cursors - git clone ssh://aur@aur.archlinux.org/posy-cursors.git aur-posy-cursors
- cd aur-posy-cursors - cd aur-posy-cursors
- cp ../posy-cursors/{PKGBUILD,.SRCINFO} ./ - cp ../posy-cursors/{PKGBUILD,.SRCINFO} ./