From 9d8dd00f96ee241f728283c1f21705f52029d5bc Mon Sep 17 00:00:00 2001 From: Arnie Date: Mon, 21 Oct 2024 11:41:47 +0200 Subject: [PATCH] Use new cmd for nix builds --- .drone.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index a313881..f212b0e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -27,8 +27,16 @@ steps: volumes: - name: deps path: /nix/store + environment: + DRONE_SSH_KEY: + from_secret: DRONE_SSH_KEY + GIT_C3C_KNOW_HOSTS: + from_secret: GIT_C3C_KNOW_HOSTS commands: - - nix-build --argstr version ${DRONE_TAG} --argstr rev ${DRONE_COMMIT} .#image + - mkdir /root/.ssh + - echo "$DRONE_SSH_KEY" > /root/.ssh/id_ed25519 + - echo "$GIT_C3C_KNOW_HOSTS" > /root/.ssh/known_hosts + - nix --extra-experimental-features nix-command --extra-experimental-features flakes build .#image - name: publish image: docker:dind @@ -87,6 +95,6 @@ services: --- kind: signature -hmac: df9a2fb07428f545bc41b36d4c8b53e0e7223333f614e2d5d890a1adbd7f324b +hmac: df39c218d4fba826757d713ce80db6debfed40c0b49215cfdf871dc37046f558 ...