2021-05-19 09:48:07 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: archlinux:base-devel
|
|
|
|
volumes:
|
|
|
|
- name: repo
|
|
|
|
path: /repo
|
|
|
|
commands:
|
2021-05-19 12:08:00 +02:00
|
|
|
- echo -e '[nyyu]\nServer = https://archlinux.nyyu.dev/nyyu\nSigLevel = Never' >> /etc/pacman.conf
|
2021-05-19 11:26:24 +02:00
|
|
|
- pacman -Syu git --noconfirm
|
|
|
|
- useradd build -m
|
|
|
|
- "echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
|
|
|
|
- chown -R build:build .
|
|
|
|
- sudo -u build sh -c './build.sh'
|
2021-05-19 09:48:07 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: repo
|
|
|
|
host:
|
|
|
|
path: /mnt/archlinux/nyyu
|