pulumi / circleci

CircleCI Orbs for CI/CD using Pulumi.
Apache License 2.0
20 stars 15 forks source link

update --skip-preview should perform update #35

Closed louis-clotman closed 3 years ago

louis-clotman commented 3 years ago

Expected behavior

update with --skip-preview option should perform an interactive update

Current behavior

#!/bin/bash -eo pipefail
pulumi update --stack aix-data --cwd /tmp/aix-data --skip-preview
error: --yes must be passed in to proceed when running in non-interactive mode

Exited with code exit status 255
CircleCI received exit code 255

Steps to reproduce

Add a workflow that contains a job with the following steps:

138     steps:
140       - pulumi/login:
141           cloud-url: $PULUMI_S3_BUCKET
142       - pulumi/update:
143           working_directory: /tmp/<< parameters.stack >>
144           stack: << parameters.stack >>
145           skip-preview: true

Context (Environment)

Can't perform update non-interactively

Affected feature

N/A

louis-clotman commented 3 years ago

Resolved

I was using v1.0 of the orb.