ci: better matrix notify template message,

prefix manta path with ci/ and use trailing / with mput to reuse uploaded filename
This commit is contained in:
teutat3s 2022-08-25 15:42:33 +02:00
parent 1f7fac40e1
commit 1ae262f48b
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -41,15 +41,15 @@ steps:
MANTA_URL: https://eu-central.manta.greenbaum.cloud
MANTA_KEY_ID: "5d:5f:3d:22:8d:37:1f:e6:d6:ab:06:18:d9:a2:04:67"
commands:
- export TARGET_DIR="$${DRONE_REPO}/$${DRONE_BUILD_NUMBER}"
- export TARGET_DIR="ci/$${DRONE_REPO}/$${DRONE_BUILD_NUMBER}"
- echo env var TARGET_DIR is set to $$TARGET_DIR
- "mkdir ~/.ssh && chmod 700 ~/.ssh"
- echo "$$PRIVATE_SSH_KEY" > ~/.ssh/id_ed25519 && chmod 600 ~/.ssh/id_ed25519
- nix flake new --template "git+https://git.greenbaum.cloud/dev/tritonshell?ref=main" ./tritonshell
- git add tritonshell
- cd tritonshell
- nix develop --command mput -p -f ../result/foot_wayland_info.png ~~/public/$${TARGET_DIR}
- nix develop --command mput -p -f ../result/test-wayland.out ~~/public/$${TARGET_DIR}
- nix develop --command mput -p -f ../result/foot_wayland_info.png ~~/public/$${TARGET_DIR}/
- nix develop --command mput -p -f ../result/test-wayland.out ~~/public/$${TARGET_DIR}/
trigger:
ref:
@ -71,7 +71,7 @@ steps:
from_secret: matrix_username
password:
from_secret: matrix_password
template: "Test run status: {{ build.status }}, artifacts uploaded to Manta: https://eu-central.manta.greenbaum.cloud/pub_solar/public/{{ repo.Owner }}/{{ repo.Name }}/{{ build.number }}"
template: "Test run triggered by tag: {{ tag }}. Test run exit status: {{ build.status }}. Artifacts uploaded to Manta: https://eu-central.manta.greenbaum.cloud/pub_solar/public/ci/{{ repo.Owner }}/{{ repo.Name }}/{{ build.number }}/foot_wayland_info.png"
depends_on:
- Tests
@ -134,6 +134,6 @@ volumes:
---
kind: signature
hmac: b38ea67f7458383c2f7650d86a619efd065b59888d738d4471c83b0a0ad12e3d
hmac: ad6d73c433228f0ce706ff57bd116d1b7a98fbf01a61c0912bd8c58a40aa15bb
...