Skip to content

Creating by @gurevichdmitry #1

Creating by @gurevichdmitry

Creating by @gurevichdmitry #1

Workflow file for this run

name: Create CDR Infrastructure
run-name: Creating ${{ github.event.inputs.deployment_name }} by @${{ github.actor }}
on:
# Ability to execute on demand
workflow_dispatch:
inputs:
deployment-name:
type: string
description: |
Name with letters, numbers, hyphens; start with a letter. Max 20 chars. e.g., 'my-env-123'
required: true
elk-stack-version:
required: true
description: "The version of the ELK stack: For BC use version without hash 8.x.y, for SNAPSHOT use 8.x.y-SNAPSHOT"
default: "8.16.0"
type: string
docker-image-override:
required: false
description: "Provide the full Docker image path to override the default image (e.g. for testing BC/SNAPSHOT)"
type: string
# TODO: remove pull_request section after testing
pull_request:
branches:
- main
- "[0-9]+.[0-9]+"
types: [opened, synchronize, reopened]
jobs:
deploy:
uses: ./.github/workflows/test-environment.yml

Check failure on line 30 in .github/workflows/cdr-infra.yml

View workflow run for this annotation

GitHub Actions / Create CDR Infrastructure

Invalid workflow file

The workflow is not valid. In .github/workflows/cdr-infra.yml (Line: 30, Col: 11): Error from called workflow elastic/cloudbeat/.github/workflows/test-environment.yml@f1a37a16c77a5b4701fb879dcaee502e8722149c (Line: 333, Col: 13): Unexpected symbol: '"true"'. Located at position 25 within expression: env.TF_VAR_cdr_infra == "true" In .github/workflows/cdr-infra.yml (Line: 30, Col: 11): Error from called workflow elastic/cloudbeat/.github/workflows/test-environment.yml@f1a37a16c77a5b4701fb879dcaee502e8722149c (Line: 341, Col: 13): Unexpected symbol: '"true"'. Located at position 25 within expression: env.TF_VAR_cdr_infra == "true"
secrets: inherit
# Required for the 'Deploy' job in the 'test-environment.yml' to authenticate with Google Cloud (gcloud).
permissions:
contents: 'read'
id-token: 'write'
with:
deployment_name: ${{ inputs.deployment-name || 'cdr-run' }}
# For now, the region is not used because it's overridden in the tf, but it's here for future compatibility.
ess-region: "gcp-us-west2"
elk-stack-version: ${{ inputs.elk-stack-version || '8.16.0-SNAPSHOT' }}
serverless_mode: false
cdr-infra: true