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