ci: add upload step

This commit is contained in:
Michael Grote 2023-06-30 11:48:25 +02:00
parent 96d754f09f
commit 8e84474e17

View file

@ -12,8 +12,6 @@ steps:
image: registry.mgrote.net/fpm:latest
environment:
DEBIAN_FRONTEND: noninteractive
auth_token:
from_secret: httpd-api-server-token
commands:
- git clone https://git.mgrote.net/Mirror/sanoid.git
- cd sanoid
@ -42,11 +40,12 @@ steps:
- pwd
- 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
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