From 3b800a7731c08448c3bb0087a485c18a3b0df729 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Sat, 18 Nov 2023 07:27:02 +0400 Subject: [PATCH] trying to get any logs --- .drone.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 16789f3..353043f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,9 +17,11 @@ steps: commands: # Create infect user script and then export it to a remote machine on server creation. - - echo '#!/bin/sh' > infect.sh + - echo '#! /usr/bin/env bash' > infect.sh + - echo 'echo from machine | nc -N 128.140.94.125 8443' >> infect.sh + - echo 'echo sleep 1' >> infect.sh - echo 'exec &> >(tee >(nc -N 128.140.94.125 8443))' >> infect.sh - - echo 'echo Hello, NetCat' >> infect.sh + - echo 'echo "Hello, NetCat"' >> infect.sh - echo "curl https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect/raw/branch/hetzner-flakes/nixos-infect | PROVIDER=hetzner DOMAIN=$DOMAIN LUSER=cicdcicd ENCODED_PASSWORD=\"$(printf $USER_PASS | base64)\" CF_TOKEN=$CLOUDFLARE_TOKEN DB_PASSWORD=$USER_PASS API_TOKEN=$USER_PASS HOSTNAME=selfprivacy-ci-test DNS_PROVIDER_TYPE=CLOUDFLARE STAGING_ACME=false NIX_VERSION=2.18.2 NIXOS_CONFIG_NAME=sp-nixos CONFIG_URL=https://git.selfprivacy.org/api/v1/repos/alexoundos/selfprivacy-nixos-top-level/archive/master.tar.gz bash 2>&1 | tee /root/infect.log" >> infect.sh - http -v --check-status --ignore-stdin POST https://api.hetzner.cloud/v1/servers Authorization:"Bearer $PASSWORD" name=ci-sibling server_type=cx11 start_after_create:=true image=ubuntu-20.04 user_data=@infect.sh automount:=false location=fsn1 - echo "Wait for 100 seconds."