ci: add upload artifacts step

This commit is contained in:
teutat3s 2022-08-24 21:52:11 +02:00
parent ab4f7ce575
commit 4501aa1317
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -22,15 +22,15 @@ type: exec
name: Tests name: Tests
steps: steps:
- name: "Tests" #- name: "Tests"
environment: # environment:
NIX_FLAGS: "--print-build-logs --verbose" # NIX_FLAGS: "--print-build-logs --verbose"
commands: # commands:
- 'echo DEBUG: Using NIX_FLAGS: $NIX_FLAGS' # - 'echo DEBUG: Using NIX_FLAGS: $NIX_FLAGS'
- nix $$NIX_FLAGS build ".#checks.x86_64-linux.customTestFor-PubSolarOS-firstTest" # - nix $$NIX_FLAGS build ".#checks.x86_64-linux.customTestFor-PubSolarOS-firstTest"
- nix-store --read-log result # - nix-store --read-log result
- nix $$NIX_FLAGS flake check # - nix $$NIX_FLAGS flake check
- nix $$NIX_FLAGS develop --command echo OK # - nix $$NIX_FLAGS develop --command echo OK
- name: "Upload artifacts" - name: "Upload artifacts"
environment: environment:
@ -45,6 +45,8 @@ steps:
- echo env var TARGET_DIR is set to $$TARGET_DIR - echo env var TARGET_DIR is set to $$TARGET_DIR
- "mkdir ~/.ssh && chmod 700 ~/.ssh" - "mkdir ~/.ssh && chmod 700 ~/.ssh"
- "echo -n $$PRIVATE_SSH_KEY > ~/.ssh/id_ed25519 && chmod 600 ~/.ssh/id_ed25519" - "echo -n $$PRIVATE_SSH_KEY > ~/.ssh/id_ed25519 && chmod 600 ~/.ssh/id_ed25519"
- eval "$(/run/current-system/sw/bin/ssh-agent)"
- /run/current-system/sw/bin/ssh-add ~/.ssh/id_ed25519
- nix flake new --template "git+https://git.greenbaum.cloud/dev/tritonshell?ref=main" ./tritonshell - nix flake new --template "git+https://git.greenbaum.cloud/dev/tritonshell?ref=main" ./tritonshell
- git add tritonshell - git add tritonshell
- cd tritonshell - cd tritonshell
@ -109,6 +111,6 @@ volumes:
--- ---
kind: signature kind: signature
hmac: acccfe3037cc6927054446b301c98bfcd860fa8d0d2e1d4974640d2ee742f3db hmac: 4f59769b2ae1edd0386bfaeaf12893242c859b6173b55c5203d2f0cb56edee17
... ...