ci: add upload step
This commit is contained in:
parent
96d754f09f
commit
8e84474e17
1 changed files with 7 additions and 8 deletions
15
.drone.yml
15
.drone.yml
|
@ -12,8 +12,6 @@ steps:
|
||||||
image: registry.mgrote.net/fpm:latest
|
image: registry.mgrote.net/fpm:latest
|
||||||
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
|
||||||
|
@ -42,11 +40,12 @@ steps:
|
||||||
- pwd
|
- pwd
|
||||||
- ls -lah
|
- ls -lah
|
||||||
|
|
||||||
|
- name: upload
|
||||||
|
image: registry.mgrote.net/allzweckcontainer:latest
|
||||||
|
environment:
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
auth_token:
|
||||||
|
from_secret: httpd-api-server-token
|
||||||
|
commands:
|
||||||
- |
|
- |
|
||||||
curl -X POST -H "token: $auth_token" -F "file=@./sanoid_$${VERSION}.deb" http://docker10.grote.lan:5040/upload
|
curl -X POST -H "token: $auth_token" -F "file=@./sanoid_$${VERSION}.deb" http://docker10.grote.lan:5040/upload
|
||||||
|
|
||||||
image_pull_secrets: # wird für den Login auf registry.mgrote.net benötigt
|
|
||||||
- dockerconfigjson
|
|
||||||
# siehe: https://wiki.mgrote.net/artikel/technik/drone.io_-_pull_secrets
|
|
||||||
|
|
Reference in a new issue