Add logging of JSON requests, CI and Dockerization #2
|
@ -49,13 +49,12 @@ steps:
|
|||
commands:
|
||||
- export PKG_PATH=$(cargo deb)
|
||||
- export PKG_FILENAME=$(basename $PKG_PATH)
|
||||
- echo $$PKG_FILENAME
|
||||
- export PKG_NAME=$(basename $PKG_PATH | awk -F _ '{print $1}')
|
||||
- export PKG_VERSION=$(basename $PKG_PATH | awk -F _ '{print $2}')
|
||||
- echo $$PKG_FILENAME
|
||||
- echo $$PKG_NAME v$$PKG_VERSION
|
||||
- |
|
||||
curl --user "$${USERNAME}:$${PASSWORD}" -X PUT
|
||||
--upload-file "$${PKG_PATH}"
|
||||
- curl --user "$${USERNAME}:$${PASSWORD}" \
|
||||
-X PUT --upload-file "$${PKG_PATH}" \
|
||||
"https://code.birch-tree.net/api/packages/$${USERNAME}/generic/$${PKG_NAME}/$${PKG_VERSION}/$${PKG_FILENAME}"
|
||||
environment:
|
||||
USERNAME: dorian
|
||||
|
|
Loading…
Reference in New Issue