Skip to content

Commit

Permalink
Can't use a local for skip_master_branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
echoboomer committed Sep 14, 2020
1 parent bc10f92 commit 2df62b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Add the following to your `pipeline.yml`:
steps:
- label: "Terraform Policy Evaluation"
plugins:
- echoboomer/terraform-opa#v1.0.0:
- echoboomer/terraform-opa#v1.0.8:
terraform_plan: tfplan.json
```
Expand All @@ -64,7 +64,7 @@ You can customize other options based on your preferred configuration:
steps:
- label: "Terraform Policy Evaluation"
plugins:
- echoboomer/terraform-opa#v1.0.0:
- echoboomer/terraform-opa#v1.0.8:
fail_step: true
policy_file: tf-this.rego
resource_types_file: custom-types.json
Expand All @@ -91,7 +91,7 @@ steps:
image: mycustomtfimage
skip_apply_no_diff: true
version: mytag
- echoboomer/terraform-opa#v1.0.0:
- echoboomer/terraform-opa#v1.0.8:
fail_step: true
terraform_plan: tfplan.json
tests_dir: "tests"
Expand Down
2 changes: 1 addition & 1 deletion hooks/command
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ BUILDKITE_BRANCH=${BUILDKITE_BRANCH:-}
IMAGE_NAME=${BUILDKITE_PLUGIN_TERRAFORM_OPA_IMAGE:-"openpolicyagent/opa"}
VERSION=${BUILDKITE_PLUGIN_TERRAFORM_OPA_VERSION:-"latest"}
OPA_IMAGE="${IMAGE_NAME}:${VERSION}"
SKIP_MASTER_BRANCH=${BUILDKITE_PLUGIN_TERRAFORM_OPA_SKIP_MASTER_BRANCH:-false}

# Pull the image ahead of time.
docker pull $OPA_IMAGE --quiet
Expand All @@ -29,7 +30,6 @@ function terraform-opa-run() {
local POLICY_FILE=${BUILDKITE_PLUGIN_TERRAFORM_OPA_POLICY_FILE:-"${TESTS_DIR}/terraform.rego"}
local RESOURCE_TYPES_FILE=${BUILDKITE_PLUGIN_TERRAFORM_OPA_RESOURCE_TYPES_FILE:-"${TESTS_DIR}/resource_types.json"}
local RESOURCE_WEIGHTS_FILE=${BUILDKITE_PLUGIN_TERRAFORM_OPA_RESOURCE_WEIGHTS_FILE:-"${TESTS_DIR}/resource_weights.json"}
local SKIP_MASTER_BRANCH=${BUILDKITE_PLUGIN_TERRAFORM_OPA_SKIP_MASTER_BRANCH:-false}
local TERRAFORM_PLAN=${BUILDKITE_PLUGIN_TERRAFORM_OPA_TERRAFORM_PLAN}

if [[ "${DEBUG}" == true ]]; then
Expand Down

0 comments on commit 2df62b5

Please sign in to comment.