From 4ca9694be9d5fdbd5be8cdc9286686a47e5ad67a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Fri, 9 Jul 2021 17:01:12 +0200 Subject: [PATCH] upload manifest to nexus --- .drone.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.drone.yml b/.drone.yml index 49b5149..f9df2b8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,6 +19,20 @@ steps: - sleep 10 - echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com - docker run -i -v $PWD/output:/output registry.kmlabz.com/birbnetes/raspi-alpine-builder + + - name: upload-results + image: alpine:latest + environment: + DOCKER_USERNAME: + from_secret: DOCKER_USERNAME + DOCKER_PASSWORD: + from_secret: DOCKER_PASSWORD + commands: + - apk update && apk add curl + - curl -v --user '$DOCKER_USERNAME:$DOCKER_PASSWORD' --upload-file ./output/sdcard.img.gz https://nexus.kmlabz.com/repository/birb-sounds/sdcard.img.gz + - curl -v --user '$DOCKER_USERNAME:$DOCKER_PASSWORD' --upload-file ./output/sdcard.img.gz.sha256 https://nexus.kmlabz.com/repository/birb-sounds/sdcard.img.gz.sha256 + - curl -v --user '$DOCKER_USERNAME:$DOCKER_PASSWORD' --upload-file ./output/sdcard_update.img.gz https://nexus.kmlabz.com/repository/birb-sounds/sdcard_update.img.gz + - curl -v --user '$DOCKER_USERNAME:$DOCKER_PASSWORD' --upload-file ./output/sdcard_update.img.gz.sha256 https://nexus.kmlabz.com/repository/birb-sounds/sdcard_update.img.gz.sha256 - name: ms-teams image: kuperiu/drone-teams