47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
kind: pipeline
|
|
type: kubernetes
|
|
name: build
|
|
|
|
workspace:
|
|
path: /drone/src
|
|
|
|
steps:
|
|
- name: build
|
|
image: archlinux:base-devel
|
|
pull: always
|
|
privileged: true
|
|
environment:
|
|
gitea_secret:
|
|
from_secret: gitea_secret
|
|
commands:
|
|
- cd /drone/src
|
|
- echo "Server = http://mirror.yandex.ru/archlinux/\$repo/os/\$arch" > /etc/pacman.d/mirrorlist
|
|
- cat /etc/pacman.d/mirrorlist
|
|
- pacman -Syu --noconfirm
|
|
- bash archiso_make.sh
|
|
- curl --user lulzette:$gitea_secret --upload-file /drone/src/archiso_out/archlinux-*-x86_64.iso https://git.lulzette.ru/api/packages/lulzette/generic/archiso/$(date +%Y-%m-%d_%H-%M-%S)/archiso-$(date +%Y-%m-%d_%H-%M-%S).iso
|
|
|
|
# - name: scp files
|
|
# image: appleboy/drone-scp
|
|
# settings:
|
|
# host:
|
|
# from_secret: scp_host
|
|
# username:
|
|
# from_secret: scp_user
|
|
# password:
|
|
# from_secret: scp_pass
|
|
# port: 22
|
|
# source: /drone/src/archiso_out/archlinux-*-x86_64.iso
|
|
# target: /var/www/mirror
|
|
|
|
# - name: gitea_release
|
|
# image: plugins/gitea-release
|
|
# settings:
|
|
# api_key:
|
|
# from_secret: gitea_secret
|
|
# base_url: https://git.lulzette.ru
|
|
# files: /drone/src/archiso_out/archlinux-*-x86_64.iso
|
|
# when:
|
|
# event: tag
|
|
|