mirror of
https://github.com/zoriya/flood.git
synced 2026-06-03 11:16:36 +00:00
dist/archlinux: add CI that pushes to AUR
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
FROM archlinux
|
||||
|
||||
ARG AUR_FINGERPRINT
|
||||
ARG AUR_FOLDER
|
||||
ARG AUR_REPO
|
||||
ARG AUR_KEY
|
||||
ARG AUR_USER
|
||||
ARG COMMIT_USERNAME
|
||||
ARG COMMIT_EMAIL
|
||||
ARG COMMIT_MESSAGE
|
||||
|
||||
RUN pacman -Sy --noconfirm base-devel openssh git pacman-contrib
|
||||
|
||||
RUN useradd -m ${AUR_USER}
|
||||
|
||||
USER ${AUR_USER}
|
||||
|
||||
WORKDIR /home/${AUR_USER}
|
||||
|
||||
RUN mkdir .ssh
|
||||
RUN echo "${AUR_FINGERPRINT}" > .ssh/known_hosts
|
||||
RUN echo "${AUR_KEY}" > .ssh/id_rsa
|
||||
RUN chmod 0400 .ssh/id_rsa
|
||||
|
||||
RUN git config --global user.name ${COMMIT_USERNAME}
|
||||
RUN git config --global user.email ${COMMIT_EMAIL}
|
||||
RUN git clone ${AUR_REPO} aur
|
||||
|
||||
WORKDIR /home/${AUR_USER}/aur
|
||||
|
||||
RUN rm -rf *
|
||||
COPY --chown=${AUR_USER}:${AUR_USER} ${AUR_FOLDER}/* ./
|
||||
RUN ls -la
|
||||
|
||||
RUN updpkgsums
|
||||
RUN makepkg --printsrcinfo > .SRCINFO
|
||||
|
||||
RUN git add .
|
||||
RUN git diff --staged --quiet || git commit -m "${COMMIT_MESSAGE}"
|
||||
RUN git push
|
||||
@@ -6,6 +6,6 @@ Tools used for installation: `pacman`
|
||||
|
||||
`flood` folder contains a working `PKGBUILD`, inspired by [nodejs-yaml](https://github.com/archlinux/svntogit-community/blob/packages/nodejs-yaml/trunk/PKGBUILD) and [nodejs-nativefier](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=nodejs-nativefier). It uses Node.js runtime of system. It complies with Arch Linux package guidelines and should be suitable for submission to Arch Linux official repository.
|
||||
|
||||
An upcoming CI will automatically push new releases to AUR (Arch User Repository).
|
||||
A CI automatically push new releases to AUR (Arch User Repository).
|
||||
|
||||
Note that checksum is not included in the file. Update it with `updpkgsums` when necessary.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
*.tgz
|
||||
@@ -1,10 +1,10 @@
|
||||
# Maintainer: replace with your name <to-be-determined@tbd>
|
||||
# Contributor: replace with your name <to-be-determined@tbd>
|
||||
# Maintainer: replace-with-your-name <to-be-determined@tbd>
|
||||
# Contributor: replace-with-your-name <to-be-determined@tbd>
|
||||
_npmname=flood
|
||||
_npmver=4.3.1
|
||||
_npmver=4.4.0
|
||||
pkgname=flood
|
||||
pkgver=$_npmver
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="A modern web UI for various torrent clients"
|
||||
arch=(any)
|
||||
url="https://flood.js.org"
|
||||
|
||||
Reference in New Issue
Block a user