Sign inSign up

cenk1cenk2/pipe-pulumi

By cenk1cenk2

•Updated about 2 hours ago

Pulumi operations for pipelines.

Image
0

3.4K

cenk1cenk2/pipe-pulumi repository overview

⁠pipe-pulumi

Pulumi related tasks in the pipeline.

pipe-pulumi [GLOBAL FLAGS] [COMMAND] [FLAGS]

⁠Global Flags

CLI

Flag / EnvironmentDescriptionTypeDefault
$LOG_LEVELDefine the log level for the application.string
enum("panic", "fatal", "warn", "info", "debug", "trace")
"info"
$ENV_FILEEnvironment files to inject.string[]

⁠Commands

⁠pipe-pulumi preview

Preview the Pulumi changes.

pipe-pulumi preview [FLAGS]

⁠Flags

GitLab Merge Request Report

Flag / EnvironmentDescriptionTypeDefault
$GITLAB_MR_REPORT_ENABLEDEnable GitLab merge request report note on the given merge request.boolfalse
$GL_PIPES_TOKENGitLab API token for merge request report notes.string
$CI_API_V4_URLGitLab API URL for merge request report notes.string
$CI_PROJECT_IDGitLab project id for merge request report notes.string
$CI_MERGE_REQUEST_IIDGitLab merge request iid for merge request report notes.int0
$GITLAB_MR_REPORT_IDENTIFIERHidden marker identifier for merge request report notes. Defaults to the job name combined with the stack or state under report.string

GitLab Pipeline

Flag / EnvironmentDescriptionTypeDefault
$CI_JOB_NAMEGitLab CI job name to include in the plan report metadata.string
$CI_JOB_URLGitLab CI job URL to include in the plan report metadata.string
$CI_PIPELINE_IDGitLab CI pipeline id to include in the plan report metadata.string
$CI_PIPELINE_URLGitLab CI pipeline URL to include in the plan report metadata.string
$CI_COMMIT_SHAGit commit sha to include in the plan report metadata.string
$CI_COMMIT_SHORT_SHAShort git commit sha to include in the plan report metadata.string

Plan Report

Flag / EnvironmentDescriptionTypeDefault
$PLAN_REPORT_LOG_ENABLEDWrite the plan report to the job log.booltrue

Preview

Flag / EnvironmentDescriptionTypeDefault
$PULUMI_PREVIEW_PLAN
$PULUMI_PLAN
Output file for pulumi plan.string"plan.json"
$PULUMI_PREVIEW_SUMMARY_OUTPUT
$PULUMI_SUMMARY_OUTPUT
Output file for pulumi preview summary. Leave empty to skip summary generation.string"pulumi-summary.json"

Pulumi

Flag / EnvironmentDescriptionTypeDefault
$PULUMI_CWDWorking directory for pulumi commands.string"."

Stack

Flag / EnvironmentDescriptionTypeDefault
$PULUMI_STACK*Stack name to use for pulumi commands.string

* required

⁠pipe-pulumi up

Apply the Pulumi changes.

pipe-pulumi up [FLAGS]

⁠Flags
Pulumi
Flag / EnvironmentDescriptionTypeDefault
$PULUMI_CWDWorking directory for pulumi commands.string"."
Stack
Flag / EnvironmentDescriptionTypeDefault
$PULUMI_STACK*Stack name to use for pulumi commands.string

* required

Up

Flag / EnvironmentDescriptionTypeDefault
$PULUMI_UP_PLAN
$PULUMI_PLAN
Input file for pulumi plan.string"plan.json"
⁠pipe-pulumi generate

Generate the Pulumi sources into the working directory. Builds the program, verifies the stack uses the file:// backend of the working directory, removes the local state and the generated paths, then initializes the stack fresh and deploys it. The stack is initialized with an empty passphrase, which only holds when the environment does not set PULUMI_CONFIG_PASSPHRASE, so a generate stack must not carry secrets.

pipe-pulumi generate [FLAGS]

⁠Flags

Generate

Flag / EnvironmentDescriptionTypeDefault
$PULUMI_GENERATE_BUILDShell command that builds the Pulumi program before the generation.string
$PULUMI_GENERATE_PATHSPaths the generation writes, relative to the working directory, removed before every run so the files it no longer generates are gone.string
format(yaml([]string))
"[]"
$PULUMI_GENERATE_COMMANDShell command that generates the sources against the selected stack. Defaults to deploying the stack.string
Pulumi
Flag / EnvironmentDescriptionTypeDefault
$PULUMI_CWDWorking directory for pulumi commands.string"."
Stack
Flag / EnvironmentDescriptionTypeDefault
$PULUMI_STACK*Stack name to use for pulumi commands.string

* required

Tag summary

Content type

Image

Digest

sha256:58fd2dc8c…

Size

118.9 MB

Last updated

about 2 hours ago

docker pull cenk1cenk2/pipe-pulumi:latest-node