From 5d00301c868a1b966d8d137acad05df01b4635a8 Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Thu, 9 Dec 2021 12:42:00 -0500 Subject: [PATCH] .drone.jsonnet: TEST - why is the setup step not switching workspaces? --- .drone.jsonnet | 1 + .drone.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/.drone.jsonnet b/.drone.jsonnet index d1abcf3..5dc9c1a 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -128,6 +128,7 @@ local deployStep(name, target=name, args=[]) = guix_step_time_machine( guix_pipeline("deploy").withTrigger(trigger.new().withEvent("promote")).withSteps([ deployStep("init", "setup"), + deployStep("workspace"), deployStep("plan"), deployStep("deploy"), ]) diff --git a/.drone.yml b/.drone.yml index 473e199..6bd8d11 100644 --- a/.drone.yml +++ b/.drone.yml @@ -80,6 +80,20 @@ steps: from_secret: aws_secret_access_key PLAN: out.plan +- name: workspace + pull: if-not-exists + image: docker.nexus.home.rekahsoft.ca/guix:latest + commands: + - cd infra + - echo 'root:x:0:0:root:/root:/bin/bash' >> /etc/passwd + - "guix time-machine -C ../channels.scm -- shell -m manifest.scm -- make workspace ENV=\"${DRONE_DEPLOY_TO}\" " + environment: + AWS_ACCESS_KEY_ID: + from_secret: aws_access_key_id + AWS_SECRET_ACCESS_KEY: + from_secret: aws_secret_access_key + PLAN: out.plan + - name: plan pull: if-not-exists image: docker.nexus.home.rekahsoft.ca/guix:latest