Compare commits
9 Commits
master
...
testing-dr
Author | SHA1 | Date | |
---|---|---|---|
|
a8ce42db9f | ||
|
11a6e77db1 | ||
|
33dbba7923 | ||
|
67610fc6b8 | ||
|
7f6c652266 | ||
|
e255b1f781 | ||
|
07af9fc2f8 | ||
|
5d01274b6f | ||
|
2ed241e256 |
71
.drone.yml
71
.drone.yml
@ -2,45 +2,56 @@ kind: pipeline
|
||||
type: docker
|
||||
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
|
||||
- cd /root
|
||||
- echo "Server = http://mirror.yandex.ru/archlinux/\$repo/os/\$arch" > /etc/pacman.d/mirrorlist
|
||||
- cat /etc/pacman.d/mirrorlist
|
||||
- pacman -Syu --noconfirm
|
||||
- cd /drone/src
|
||||
- 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: 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
|
||||
strip_components: 3
|
||||
|
||||
# - 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
|
||||
- name: send telegram notification
|
||||
image: appleboy/drone-telegram
|
||||
settings:
|
||||
token:
|
||||
from_secret: tg_token
|
||||
to:
|
||||
from_secret: tg_user
|
||||
message: >
|
||||
{{#success build.status}}
|
||||
build {{build.number}} of {{repo.name}} succeeded. Commit: {{commit.message}}. Duration: {{since build.started}}. Good job.
|
||||
{{else}}
|
||||
build {{build.number}} of {{repo.name}} failed. Commit: {{commit.message}}. Duration: {{since build.started}}. Fix me please.
|
||||
{{/success}}
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
|
||||
#- name: gitea_release
|
||||
# image: plugins/gitea-release
|
||||
# settings:
|
||||
# api_key: xxxxxxxx
|
||||
# base_url: https://your.gitea.tld
|
||||
# files: dist/*
|
||||
# when:
|
||||
# event: tag
|
||||
|
||||
|
@ -152,6 +152,8 @@ gptfdisk
|
||||
grml-zsh-config
|
||||
hdparm
|
||||
intel-ucode
|
||||
ipw2100-fw
|
||||
ipw2200-fw
|
||||
irssi
|
||||
iwd
|
||||
jfsutils
|
||||
|
Loading…
Reference in New Issue
Block a user