Compare commits
9 Commits
master
...
testing-dr
Author | SHA1 | Date | |
---|---|---|---|
|
a8ce42db9f | ||
|
11a6e77db1 | ||
|
33dbba7923 | ||
|
67610fc6b8 | ||
|
7f6c652266 | ||
|
e255b1f781 | ||
|
07af9fc2f8 | ||
|
5d01274b6f | ||
|
2ed241e256 |
61
.drone.yml
61
.drone.yml
@ -2,45 +2,56 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: build
|
name: build
|
||||||
|
|
||||||
workspace:
|
|
||||||
path: /drone/src
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: archlinux:base-devel
|
image: archlinux:base-devel
|
||||||
pull: always
|
|
||||||
privileged: true
|
privileged: true
|
||||||
environment:
|
|
||||||
gitea_secret:
|
|
||||||
from_secret: gitea_secret
|
|
||||||
commands:
|
commands:
|
||||||
- cd /drone/src
|
- cd /root
|
||||||
- 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
|
||||||
|
- cd /drone/src
|
||||||
- bash archiso_make.sh
|
- 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
|
- name: scp files
|
||||||
# image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
# settings:
|
settings:
|
||||||
# host:
|
host:
|
||||||
# from_secret: scp_host
|
from_secret: scp_host
|
||||||
# username:
|
username:
|
||||||
# from_secret: scp_user
|
from_secret: scp_user
|
||||||
# password:
|
password:
|
||||||
# from_secret: scp_pass
|
from_secret: scp_pass
|
||||||
# port: 22
|
port: 22
|
||||||
# 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
|
||||||
|
strip_components: 3
|
||||||
|
|
||||||
|
- 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
|
#- name: gitea_release
|
||||||
# image: plugins/gitea-release
|
# image: plugins/gitea-release
|
||||||
# settings:
|
# settings:
|
||||||
# api_key:
|
# api_key: xxxxxxxx
|
||||||
# from_secret: gitea_secret
|
# base_url: https://your.gitea.tld
|
||||||
# base_url: https://git.lulzette.ru
|
# files: dist/*
|
||||||
# files: /drone/src/archiso_out/archlinux-*-x86_64.iso
|
|
||||||
# when:
|
# when:
|
||||||
# event: tag
|
# event: tag
|
||||||
|
|
||||||
|
@ -152,6 +152,8 @@ gptfdisk
|
|||||||
grml-zsh-config
|
grml-zsh-config
|
||||||
hdparm
|
hdparm
|
||||||
intel-ucode
|
intel-ucode
|
||||||
|
ipw2100-fw
|
||||||
|
ipw2200-fw
|
||||||
irssi
|
irssi
|
||||||
iwd
|
iwd
|
||||||
jfsutils
|
jfsutils
|
||||||
|
Loading…
Reference in New Issue
Block a user