This commit is contained in:
parent
a0293d4176
commit
80808eecc4
18
.drone.yml
18
.drone.yml
@ -10,12 +10,16 @@ steps:
|
|||||||
image: archlinux:base-devel
|
image: archlinux:base-devel
|
||||||
pull: always
|
pull: always
|
||||||
privileged: true
|
privileged: true
|
||||||
|
environment:
|
||||||
|
gitea_secret:
|
||||||
|
from_secret: gitea_secret
|
||||||
commands:
|
commands:
|
||||||
- cd /drone/src
|
- cd /drone/src
|
||||||
- echo "Server = http://mirror.yandex.ru/archlinux/\$repo/os/\$arch" > /etc/pacman.d/mirrorlist
|
- echo "Server = http://mirror.yandex.ru/archlinux/\$repo/os/\$arch" > /etc/pacman.d/mirrorlist
|
||||||
- cat /etc/pacman.d/mirrorlist
|
- cat /etc/pacman.d/mirrorlist
|
||||||
- pacman -Syu --noconfirm
|
- pacman -Syu --noconfirm
|
||||||
- bash archiso_make.sh
|
- bash archiso_make.sh
|
||||||
|
- curl --user lulzette:$gitea_secret --upload-file /drone/src/archiso_out/archlinux-*-x86_64.iso https://gitea.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
|
# - name: scp files
|
||||||
# image: appleboy/drone-scp
|
# image: appleboy/drone-scp
|
||||||
@ -30,13 +34,13 @@ steps:
|
|||||||
# source: /drone/src/archiso_out/archlinux-*-x86_64.iso
|
# source: /drone/src/archiso_out/archlinux-*-x86_64.iso
|
||||||
# target: /var/www/mirror
|
# target: /var/www/mirror
|
||||||
|
|
||||||
- name: gitea_release
|
# - name: gitea_release
|
||||||
image: plugins/gitea-release
|
# image: plugins/gitea-release
|
||||||
settings:
|
# settings:
|
||||||
api_key:
|
# api_key:
|
||||||
from_secret: gitea_secret
|
# from_secret: gitea_secret
|
||||||
base_url: https://git.lulzette.ru
|
# base_url: https://git.lulzette.ru
|
||||||
files: /drone/src/archiso_out/archlinux-*-x86_64.iso
|
# files: /drone/src/archiso_out/archlinux-*-x86_64.iso
|
||||||
# when:
|
# when:
|
||||||
# event: tag
|
# event: tag
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user