.drone.jsonnet: TEST - why is the setup step not switching workspaces?

This commit is contained in:
Collin J. Doering 2021-12-09 12:42:00 -05:00
parent b162752ce6
commit 5d00301c86
Signed by: rekahsoft
GPG Key ID: 7B4DEB93212B3022
2 changed files with 15 additions and 0 deletions

View File

@ -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"),
])

View File

@ -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