myarchlinux_builder/.drone.yml
lulzette c3b9b71e2d
Some checks reported errors
continuous-integration/drone/push Build is failing
continuous-integration/drone Build was killed
updated location of result iso
2022-10-19 15:20:42 +03:00

42 lines
829 B
YAML

kind: pipeline
type: docker
name: build
workspace:
path: /drone/src
steps:
- name: build
image: archlinux:base-devel
pull: always
privileged: true
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
- 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: xxxxxxxx
# base_url: https://your.gitea.tld
# files: dist/*
# when:
# event: tag