From 80808eecc459e40200c5fd3c422551f4292ab944 Mon Sep 17 00:00:00 2001 From: lulzette Date: Thu, 27 Jun 2024 11:45:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20.drone.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8f4e094..44f952d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,12 +10,16 @@ steps: image: archlinux:base-devel pull: always privileged: true + environment: + gitea_secret: + from_secret: gitea_secret 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 + - 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 # image: appleboy/drone-scp @@ -30,13 +34,13 @@ steps: # source: /drone/src/archiso_out/archlinux-*-x86_64.iso # target: /var/www/mirror -- 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 +# - 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