diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..0460e78 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,49 @@ +kind: pipeline +type: docker +name: amd64 + +steps: +- name: makepkg + image: docker.io/volkerraschek/build-image:latest + commands: + - pacman --sync --refresh --sysupgrade --noconfirm --needed sudo binutils fakeroot + - useradd --create-home builder + - chown --recursive builder:builder /drone/src + - su --shell /bin/bash builder -c "makepkg --force --cleanbuild --noconfirm" + +- name: upload-pkg-into-aur + image: appleboy/drone-scp:1.6.2 + settings: + host: aur.cryptic.systems + user: root + key: + from_secret: repository-ssh-key + port: 22 + command_timeout: 2m + target: + - /srv/aur/x86_64 + source: + - flucky-*.zst* + when: + branch: + - master + repo: + - flucky/PKGBUILD + +# - name: push-latest-commit +# environment: +# GIT_PUSH_SSH_KEY: +# from_secret: +# github_ssh_key +# image: appleboy/drone-git-push:0.2.0-linux-amd64 +# settings: +# remote: git@github.com:flucky/PKGBUILD.git +# force: true +# when: +# branch: +# - master +# repo: +# - flucky/PKGBUILD + +# node: +# aur: "true" \ No newline at end of file diff --git a/.gitignore b/.gitignore index 73e070b..0361fef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ * +!.drone.yml !.gitignore !PKGBUILD \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD index 410230d..87e2a6d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -9,7 +9,7 @@ url=https://git.cryptic.systems/flucky/flucky license=('Apache 2.0') makedepends=('git' 'go' 'make') source=("https://git.cryptic.systems/flucky/flucky/archive/v${pkgver}.tar.gz") -sha512sums=('fb7688d20d8d5b6293f826b2c0aa2748cbab6ef1dffab9529cc3371fffc4b18dc1e7ae1799cab187cea5dd7d5b859cbd8d693fd7b83736e6ecb2d94d255a2a13') +sha512sums=('1e53256f0b45c0e887b224ca697b3c1fadfb4135399595cbfee758f8f6c2357471da287a816d7fd0924adb96bc43676adf3149b0dd6bfa3f1c6c6947fcc6c760') package() { make --directory ${srcdir}/${pkgname} DESTDIR=${pkgdir} PREFIX=/usr VERSION=${pkgver} install