Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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
- "echo 'build ALL = NOPASSWD: /usr/bin/pacman' > /etc/sudoers.d/build"
script:
- ulimit -c 0
- sudo -u build -- makepkg --syncdeps --noconfirm
artifacts:
name: $CI_PROJECT_NAME-$CI_COMMIT_REF_NAME
expire_in: 1 week
paths:
- config.x86_64
- "*.pkg.tar.xz"
only:
refs:
- tags
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:
refs:
- tags