/etc/nixos#sp-nixos => /etc/nixos#default
continuous-integration/drone/push Build is passing Details

tests
Alexander 2023-12-27 14:05:09 +04:00
parent 05e395d6af
commit c95b9d0f62
2 changed files with 4 additions and 4 deletions

View File

@ -29,14 +29,14 @@ steps:
set -o errexit
API_TOKEN="$USER_PASS"
CONFIG_URL=https://git.selfprivacy.org/api/v1/repos/SelfPrivacy/selfprivacy-nixos-template/archive/eb9aebc8ace3f82748dc325374058df534056420.tar.gz
CONFIG_URL=https://git.selfprivacy.org/api/v1/repos/SelfPrivacy/selfprivacy-nixos-template/archive/58d43eec2f69c8fada5eea3e20b917de26bf8bb6.tar.gz
DB_PASSWORD="$USER_PASS"
DNS_PROVIDER_TOKEN=$CLOUDFLARE_TOKEN
DNS_PROVIDER_TYPE=CLOUDFLARE
DOMAIN=$DOMAIN
HOSTNAME=selfprivacy-ci-test
LUSER=cicdcicd
NIXOS_CONFIG_NAME=sp-nixos
NIXOS_CONFIG_ID=default
NIX_VERSION=2.18.1
PROVIDER=hetzner
SSH_AUTHORIZED_KEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMBb3yVhYF4slhf1iQCiGLOVcbGKP/MmkQiEMl2un+4K"

View File

@ -15,7 +15,7 @@
: "${DB_PASSWORD:?DB_PASSWORD variable is not set}"
: "${USER_PASS:?USER_PASS variable is not set}"
: "${NIX_VERSION:?NIX_VERSION variable is not set}"
: "${NIXOS_CONFIG_NAME:?NIXOS_CONFIG_NAME variable is not set}"
: "${NIXOS_CONFIG_ID:?NIXOS_CONFIG_ID variable is not set}"
: "${CONFIG_URL:?CONFIG_URL variable is not set}"
: "${SSH_AUTHORIZED_KEY:=}"
@ -424,7 +424,7 @@ infect() {
echo "nix build the configuration flake..."
if ! $NIX "${NIX_OPTS[@]}" build \
--profile /nix/var/nix/profiles/system \
${LOCAL_FLAKE_DIR}/#nixosConfigurations.sp-nixos.config.system.build.toplevel
${LOCAL_FLAKE_DIR}/#nixosConfigurations."$NIXOS_CONFIG_ID".config.system.build.toplevel
then
echo "Failed!"
exit 1