Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seblu-meta
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archlinux
linux-seblu-meta
Commits
030f0b41
Commit
030f0b41
authored
6 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
Use archbuild@white CI runner
parent
d5b6731f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#120
passed with stage
in 35 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-32
3 additions, 32 deletions
.gitlab-ci.yml
with
3 additions
and
32 deletions
.gitlab-ci.yml
+
3
−
32
View file @
030f0b41
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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment