Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
archlinux
kernel-install-poc
Commits
4e4ef01b
Commit
4e4ef01b
authored
Jan 15, 2019
by
Seblu
Browse files
Use archbuild@white CI runner
parent
824ff305
Pipeline
#122
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
4e4ef01b
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 --create-home --shell /bin/bash build
-
"
echo
'build
ALL
=
NOPASSWD:
/usr/bin/pacman'
>
/etc/sudoers.d/build"
-
"
[
-n
\"
$PACKAGER
\"
]
&&
echo
\"
PACKAGER='$PACKAGER'
\"
>
/home/build/.makepkg.conf"
-
echo "MAKEFLAGS='-j$(nproc)'" >> /home/build/.makepkg.conf
script
:
-
ulimit -c
0
-
sudo -u build -- makepkg --syncdeps --noconfirm
-
seblu-build
artifacts
:
name
:
$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA
expire_in
:
1 week
paths
:
-
"
*.pkg.tar.xz"
only
:
changes
:
-
PKGBUILD
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
script
:
-
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment