From 13fdae090d46f7e58d19f8dff4251c17d1507e84 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 28 Jun 2023 14:41:01 +0200 Subject: [PATCH] ci: combine steps --- .drone.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index f592b47..b2cab35 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,6 +12,8 @@ steps: image: registry.mgrote.net/allzweckcontainer:latest # privates Image, Pull-Secret notwendig environment: DEBIAN_FRONTEND: noninteractive + auth_token: + from_secret: httpd-api-server-token commands: - git clone https://git.mgrote.net/Mirror/sanoid.git - cd sanoid @@ -19,15 +21,8 @@ steps: - git checkout $(git tag | grep "^v" | tail -n 1) - version=$(git tag | grep "^v" | tail -n 1) - ln -s packages/debian . - - dpkg-buildpackage -uc -us - - - name: upload - image: registry.mgrote.net/allzweckcontainer:latest # privates Image, Pull-Secret notwendig - environment: - DEBIAN_FRONTEND: noninteractive - auth_token: - from_secret: httpd-api-server-token - commands: # upload + - dpkg-buildpackage -uc -u + # uoload - cp "../sanoid_${version}_all.deb" "../sanoid_latest_all.deb" - cp "../sanoid_${version}_all.deb" "../sanoid_${DRONE_COMMIT_BRANCH}_all.deb" - |