Skip to content

WIP-20240824124839

WIP-20240824124839 #28

name: Install Prometheus Operator using Terraform and Helm in Docker
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
install-prometheus-operator:
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
with:
cli_config_credentials_token: ${{ secrets.TFE_TOKEN }}
- name: Create kubeconfig file
run: echo "${{ secrets.KUBECONFIG_DATA }}" > $HOME/.kube/config
- name: Terraform Init
env: KUBECONFIG=$HOME/.kube/config

Check failure on line 28 in .github/workflows/install-prometheus-operator.yml

View workflow run for this annotation

GitHub Actions / Install Prometheus Operator using Terraform and Helm in Docker

Invalid workflow file

The workflow is not valid. .github/workflows/install-prometheus-operator.yml (Line: 28, Col: 14): Unexpected value 'KUBECONFIG=$HOME/.kube/config' .github/workflows/install-prometheus-operator.yml (Line: 32, Col: 14): Unexpected value 'KUBECONFIG=$HOME/.kube/config'
run: terraform -chdir=monitoring init
- name: Terraform Plan
env: KUBECONFIG=$HOME/.kube/config
run: terraform -chdir=monitoring plan
- name: Terraform Apply
env: KUBECONFIG=$HOME/.kube/config
if: github.ref == 'refs/heads/main'
run: terraform -chdir=monitoring apply -auto-approve