Skip to content

Commit

Permalink
WIP-20240824124839
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyev committed Aug 24, 2024
1 parent c6d164c commit 7535970
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/install-prometheus-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ jobs:
cli_config_credentials_token: ${{ secrets.TFE_TOKEN }}

- name: Create kubeconfig file
run: mkdir .kube && echo "${{ secrets.KUBECONFIG_DATA }}" > .kube/config
run: echo "${{ secrets.KUBECONFIG_DATA }}" > $HOME/.kube/config

- name: Terraform Init
env: 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

0 comments on commit 7535970

Please sign in to comment.