Skip to content

vars needed

vars needed #111

# Deploy infrastructure on staging environment
name: on-push-to-master
concurrency:
group: on-push-to-master
cancel-in-progress: true
on:
push:
branches:
- master
jobs:
validate-tf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
terraform_version: ~1.10.0
- uses: terraform-linters/setup-tflint@v4
- run: terraform init --backend=false && tflint --init
- run: tflint
- run: terraform validate
deploy:
needs: validate-tf
uses: davidleonm/cicd-pipelines/.github/workflows/deploy-infrastructure.yml@master

Check failure on line 28 in .github/workflows/on-push-to-master.yml

View workflow run for this annotation

GitHub Actions / on-push-to-master

Invalid workflow file

The workflow is not valid. In .github/workflows/on-push-to-master.yml (Line: 28, Col: 11): Error from called workflow davidleonm/cicd-pipelines/.github/workflows/deploy-infrastructure.yml@master (Line: 48, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.secrets-list != ''

Check failure on line 28 in .github/workflows/on-push-to-master.yml

View workflow run for this annotation

GitHub Actions / on-push-to-master

Invalid workflow file

The workflow is not valid. In .github/workflows/on-push-to-master.yml (Line: 28, Col: 11): Error from called workflow davidleonm/cicd-pipelines/.github/workflows/deploy-infrastructure.yml@master (Line: 48, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.vars-list != ''
with:
terraform-version: ~1.10.0
env-name: staging
secrets:
kubernetes-config-base64: ${{ secrets.KUBERNETES_CONFIG_BASE64 }}
vars-list: "TF_VAR_database_admin_password=${{ secrets.db-admin-password }}"