From dec5dfa53a7422ea7aa8ef2f3f5ddb5f8376e503 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 14 Aug 2022 21:56:16 +0200 Subject: [PATCH] ci: add upload artifacts step --- .drone.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index fcad1a57..655cc1d6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -33,15 +33,21 @@ steps: - nix $$NIX_FLAGS develop --command echo OK - name: "Upload artifacts" + environment: + PRIVATE_SSH_KEY: + from_secret: private_ssh_key + MANTA_USER: pub_solar + MANTA_URL: https://eu-central.manta.greenbaum.cloud + MANTA_KEY_ID: "02:ae:79:2b:8f:7f:51:ba:c6:3c:ea:6f:f7:bb:d1:6a" commands: - export TARGET_DIR="$${DRONE_REPO}/$${DRONE_BUILD_NUMBER}" - echo env var TARGET_DIR is set to $$TARGET_DIR - nix flake new --template "git+https://git.greenbaum.cloud/dev/tritonshell?ref=main" ./tritonshell - git add tritonshell - cd tritonshell - - nix develop --command triton profile set lev-1.pub.solar \ - && mput -p -f ./result/foot_wayland_info.png ~~/public/$${DRONE_REPO}/$${DRONE_BUILD_NUMBER} \ - && mput -p -f ./result/test-wayland.out ~~/public/$${DRONE_REPO}/$${DRONE_BUILD_NUMBER} + - nix develop --command \ + && mput -p -f ./result/foot_wayland_info.png ~~/public/$${TARGET_DIR} \ + && mput -p -f ./result/test-wayland.out ~~/public/$${TARGET_DIR} trigger: ref: @@ -101,6 +107,6 @@ volumes: --- kind: signature -hmac: f226b14a22ff686348fbb1f88b6759089a1a46f18a72ebd70bd7f170c262f99a +hmac: 8a194e595ea431b590e08c591a5707b613d0cba7ed4ce700f9c62ef2efc343eb ...