myarchlinux_builder/.drone.yml

47 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2022-02-10 23:34:19 +03:00
kind: pipeline
type: docker
name: build
2022-10-19 01:57:29 +03:00
workspace:
path: /drone/src
2022-02-10 23:34:19 +03:00
steps:
- name: build
image: archlinux:base-devel
2022-10-19 01:54:39 +03:00
pull: always
2022-02-10 23:34:19 +03:00
privileged: true
2024-06-27 15:11:21 +03:00
environment:
gitea_secret:
from_secret: gitea_secret
2022-02-10 23:34:19 +03:00
commands:
2022-10-19 01:57:29 +03:00
- cd /drone/src
2022-02-10 23:56:04 +03:00
- echo "Server = http://mirror.yandex.ru/archlinux/\$repo/os/\$arch" > /etc/pacman.d/mirrorlist
2022-02-10 23:55:30 +03:00
- cat /etc/pacman.d/mirrorlist
2022-02-10 23:34:19 +03:00
- pacman -Syu --noconfirm
- bash archiso_make.sh
2024-06-27 15:11:21 +03:00
- 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
2022-02-10 23:34:19 +03:00
2024-06-27 11:03:04 +03:00
# - 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
2022-02-10 23:34:19 +03:00
2024-06-27 15:11:21 +03:00
# - 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
2022-02-10 23:34:19 +03:00