myarchlinux_builder/.drone.yml

39 lines
776 B
YAML
Raw Normal View History

2022-02-10 23:34:19 +03:00
kind: pipeline
type: docker
name: build
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
commands:
- cd /root
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
- 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: /root/archlinux-*-x86_64.iso
target: /var/www/mirror
#- name: gitea_release
# image: plugins/gitea-release
# settings:
# api_key: xxxxxxxx
# base_url: https://your.gitea.tld
# files: dist/*
# when:
# event: tag