diff options
| -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 |
