ci: combine steps
This commit is contained in:
parent
144f6090c1
commit
13fdae090d
1 changed files with 4 additions and 9 deletions
13
.drone.yml
13
.drone.yml
|
@ -12,6 +12,8 @@ steps:
|
||||||
image: registry.mgrote.net/allzweckcontainer:latest # privates Image, Pull-Secret notwendig
|
image: registry.mgrote.net/allzweckcontainer:latest # privates Image, Pull-Secret notwendig
|
||||||
environment:
|
environment:
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
auth_token:
|
||||||
|
from_secret: httpd-api-server-token
|
||||||
commands:
|
commands:
|
||||||
- git clone https://git.mgrote.net/Mirror/sanoid.git
|
- git clone https://git.mgrote.net/Mirror/sanoid.git
|
||||||
- cd sanoid
|
- cd sanoid
|
||||||
|
@ -19,15 +21,8 @@ steps:
|
||||||
- git checkout $(git tag | grep "^v" | tail -n 1)
|
- git checkout $(git tag | grep "^v" | tail -n 1)
|
||||||
- version=$(git tag | grep "^v" | tail -n 1)
|
- version=$(git tag | grep "^v" | tail -n 1)
|
||||||
- ln -s packages/debian .
|
- ln -s packages/debian .
|
||||||
- dpkg-buildpackage -uc -us
|
- dpkg-buildpackage -uc -u
|
||||||
|
# uoload
|
||||||
- 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
|
|
||||||
- cp "../sanoid_${version}_all.deb" "../sanoid_latest_all.deb"
|
- cp "../sanoid_${version}_all.deb" "../sanoid_latest_all.deb"
|
||||||
- cp "../sanoid_${version}_all.deb" "../sanoid_${DRONE_COMMIT_BRANCH}_all.deb"
|
- cp "../sanoid_${version}_all.deb" "../sanoid_${DRONE_COMMIT_BRANCH}_all.deb"
|
||||||
- |
|
- |
|
||||||
|
|
Reference in a new issue