ci: combine steps

This commit is contained in:
Michael Grote 2023-06-28 14:41:01 +02:00
parent 144f6090c1
commit 13fdae090d

View file

@ -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"
- |