Skip to content
Snippets Groups Projects
Commit f2d6f892 authored by Seblu's avatar Seblu
Browse files

Add gitlab-ci

parent bcce3553
No related branches found
No related tags found
No related merge requests found
Pipeline #90 passed with stages
in 4 minutes and 33 seconds
stages:
- build
- deploy
makepkg:
stage: build
image: archlinux/base:latest
before_script:
- echo 'Server = http://mir.archlinux.fr/$repo/os/$arch' > /etc/pacman.d/mirrorlist
- echo '[seblu]' >> /etc/pacman.conf
- echo 'Server = http://al.seblu.net/$repo/$arch' >> /etc/pacman.conf
- echo 'SigLevel = Required TrustedOnly' >> /etc/pacman.conf
- pacman --sync --refresh --sysupgrade --noconfirm
- pacman --sync --noconfirm base-devel devtools
- useradd --home-dir /root --groups root,wheel --shell /bin/bash build
- chmod 770 /root
script:
- ulimit -c 0
- pwd
- ls -Rl
- sudo -u build -- makepkg --syncdeps
artifacts:
name: $CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA
expire_in: 1 week
paths:
- "*.pkg.tar.xz"
commitpkg:
stage: deploy
image: archlinux/base:latest
before_script:
- echo 'Server = http://mir.archlinux.fr/$repo/os/$arch' > /etc/pacman.d/mirrorlist
- echo '[seblu]' >> /etc/pacman.conf
- echo 'Server = http://al.seblu.net/$repo/$arch' >> /etc/pacman.conf
- echo 'SigLevel = Required TrustedOnly' >> /etc/pacman.conf
- pacman --sync --refresh --sysupgrade --noconfirm
- pacman --sync --noconfirm openssh archrepo-git
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts &&
- chmod 644 ~/.ssh/known_hosts
script:
- seblu-push
only:
- master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment