kind: pipeline type: docker name: build steps: - name: build image: archlinux:base-devel privileged: true commands: - 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 - 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: 1 - 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