Skip to content

Commit d71f683

Browse files
committedFeb 14, 2025
Update tofu workflow to specify plan output and apply changes, and set Flux version to v2.4.0
1 parent e265bb8 commit d71f683

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎.forgejo/workflows/tofu.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ jobs:
6969
env:
7070
AWS_ACCESS_KEY_ID: ${{ steps.bitwarden-secrets.outputs.aws_access_key_id }}
7171
AWS_SECRET_ACCESS_KEY: ${{ steps.bitwarden-secrets.outputs.aws_secret_access_key }}
72-
run: tofu plan -no-color
72+
run: tofu plan -no-color -parallelism=1 -out=tfplan
7373

7474
- name: Apply the Plan
7575
if: success()
7676
working-directory: ./terraform
7777
env:
7878
AWS_ACCESS_KEY_ID: ${{ steps.bitwarden-secrets.outputs.aws_access_key_id }}
7979
AWS_SECRET_ACCESS_KEY: ${{ steps.bitwarden-secrets.outputs.aws_secret_access_key }}
80-
run: tofu apply -auto-approve
80+
run: tofu apply tfplan -auto-approve

‎terraform/flux/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ provider "flux" {
1717

1818
resource "flux_bootstrap_git" "flux" {
1919
path = "kubernetes/cluster/production"
20+
version = "v2.4.0"
2021

2122
lifecycle {
2223
ignore_changes = all

0 commit comments

Comments
 (0)
Please sign in to comment.