From 6f92c589c38e0a4d33356fd80cd9c77443041ed2 Mon Sep 17 00:00:00 2001 From: Ciapa Date: Mon, 20 May 2024 16:08:10 +0200 Subject: [PATCH] Make woodpecker config work again --- .woodpecker/deploy.yaml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/.woodpecker/deploy.yaml b/.woodpecker/deploy.yaml index 9aa42cc..b76785f 100644 --- a/.woodpecker/deploy.yaml +++ b/.woodpecker/deploy.yaml @@ -7,34 +7,25 @@ variables: &nix-config NIXPKGS_ALLOW_INSECURE: "1" steps: - - name: Configure Nix Channels - image: bash + - name: Check Flake + image: nixos/nix:latest + pull: true commands: - nix-channel --add https://nixos.org/channels/nixos-$${NIXOS_VERSION} nixos - nix-channel --update - environment: - *nix-config - when: - - evaluate: 'CI_PIPELINE_EVENT != "cron" && CI_PIPELINE_EVENT != "schedule"' - - - name: Check Flake - image: bash - commands: - nix flake check environment: *nix-config when: - evaluate: 'CI_PIPELINE_EVENT != "cron" && CI_PIPELINE_EVENT != "schedule"' - - name: Place SSH Key - image: bash - commands: - - echo $${SSH_PRIVATE_KEY}} > .privkey - - chmod 0600 .privkey - - name: Deploy - image: bash + image: nixos/nix:latest + pull: true commands: + - nix-env -iA nixos.openssh + - eval "$(ssh-agent -s)" + - echo $${SSH_PRIVATE_KEY}} | ssh-add - - nix develop --command deploy environment: *nix-config