Skip to content

Commit 8509324

Browse files
committedFeb 14, 2025
Add Bitwarden access token to tofu workflow
1 parent 1f0ea6c commit 8509324

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

‎.forgejo/workflows/tofu.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
030fbb6a-3b6d-40dc-9c26-b222001b0fb6 > grafana_url
3131
f8f85ab2-5f6d-46a7-9e06-b20800076d26 > s3_endpoint
3232
b6dac092-df23-4e28-8449-b2770059096d > kube_config
33+
4dff237e-93ad-4eda-a776-b28400653181 > bws_access_token
3334
3435
3536
- name: Create tfvars file
@@ -41,6 +42,7 @@ jobs:
4142
grafana_auth = "${{ steps.bitwarden-secrets.outputs.grafana_auth }}"
4243
grafana_url = "${{ steps.bitwarden-secrets.outputs.grafana_url }}"
4344
s3_endpoint = "${{ steps.bitwarden-secrets.outputs.s3_endpoint }}"
45+
access_token = "${{ steps.bitwarden-secrets.outputs.bws_access_token }}"
4446
EOF
4547
4648
- name: Make Kube directory
@@ -51,10 +53,6 @@ jobs:
5153
run: |
5254
printf "%s" "${{ steps.bitwarden-secrets.outputs.kube_config }}" > ~/.kube/config
5355
54-
- name: Verify kubectl and Cluster Connection
55-
run: |
56-
kubectl get nodes
57-
5856
- name: Setup OpenTofu
5957
uses: https://github.com/opentofu/setup-opentofu@v1.0.5
6058

@@ -74,7 +72,7 @@ jobs:
7472
AWS_ACCESS_KEY_ID: ${{ steps.bitwarden-secrets.outputs.aws_access_key_id }}
7573
AWS_SECRET_ACCESS_KEY: ${{ steps.bitwarden-secrets.outputs.aws_secret_access_key }}
7674
TF_LOG: DEBUG
77-
run: tofu plan -no-color -parallelism=1 -out=tfplan < /dev/null
75+
run: tofu plan -parallelism=1 -out=tfplan
7876

7977
- name: Apply the Plan
8078
if: success()

0 commit comments

Comments
 (0)
Please sign in to comment.