diff options
| author | seth <[email protected]> | 2023-12-13 20:29:48 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-13 20:30:08 -0500 |
| commit | b890162d62040bcfcc6a0106abd100e1fa9e4c54 (patch) | |
| tree | dca6d3d6adecba124608d575f7b8c7773aa16713 /.github | |
| parent | 72a72a099aefe4d0dd27175b54d5e9ecbaebeed8 (diff) | |
actions: don't use setup-opentofu for auth
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/deploy.yaml | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 5baeeab..9a00df7 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -68,16 +68,33 @@ jobs: # - name: Setup local Nix cache # uses: DeterminateSystems/magic-nix-cache-action@v2 - # - name: Setup OpenTofu - # uses: opentofu/setup-opentofu@v1 - # with: - # cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} - # - name: Setup OpenTofu cache # uses: terraform-cache/terraform-cache@v1 + # - name: Authenticate with TF Cloud + # run: | + # dir="$HOME/.terraform.d" + # [ ! -d "$dir" ] && mkdir -p "$dir" + + # cat > "$dir"/credentials.tfrc.json << EOF + # { + # "credentials": { + # "app.terraform.io": { + # "token": "${{ secrets.TF_API_TOKEN }}" + # } + # } + # } + # EOF + + # - name: Generate configuration + # run: nix run .#gen-tofu + # - name: Run plan - # run: nix run .#plan + # run: | + # nix develop --accept-flake-config \ + # --command tofu plan # - name: Apply - # run: tofu apply -auto-approve + # run: | + # nix develop --accept-flake-config \ + # --command tofu apply -auto-approve |
