.drone.jsonnet: TEST - why is the setup step not switching workspaces?
This commit is contained in:
parent
b162752ce6
commit
5d00301c86
@ -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"),
|
||||
])
|
||||
|
14
.drone.yml
14
.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
|
||||
|
Loading…
Reference in New Issue
Block a user