From 6c0486034d4e738d7cf3371b03284374e113b50e Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Fri, 24 Nov 2023 06:21:38 +0400 Subject: [PATCH] drone: fix INFECT_SOURCE_BRANCH variable --- .drone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5d05010..cf57054 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,10 +13,10 @@ steps: from_secret: CLOUDFLARE_TOKEN USER_PASS: from_secret: USER_PASS - INFECT_SOURCE_BRANCH: $DRONE_SOURCE_BRANCH + INFECT_SOURCE_BRANCH: ${DRONE_SOURCE_BRANCH} commands: - # Create infect user script and then export it to a remote machine on server creation. + # Create infect user script and then push it to a remote machine on server creation. - echo '#! /usr/bin/env bash' > infect.sh - echo "curl https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect/raw/branch/$INFECT_SOURCE_BRANCH/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.1 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 @@ -73,7 +73,7 @@ steps: - name: sleep commands: - - sleep 999 + - sleep 300 - name: test environment: