Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa6765 committed Jun 30, 2024
1 parent ab4a73a commit e5a412e
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/terraform-terragrunt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ jobs:
ls -la $HOME
- name: Set up Terraform CLI
uses: hashicorp/setup-terraform@v1
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.8.0 # Replace with your desired version
terraform_version: 1.8.0
terraform_wrapper: true
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}

- name: Set up Terragrunt CLI
run: |
Expand All @@ -30,19 +32,6 @@ jobs:
sudo mv /tmp/terragrunt /usr/local/bin/terragrunt
echo "✅ Terragrunt CLI setup completed!"
- name: Create Terraform CLI config directory and credentials file
run: |
mkdir $HOME/.terraform.d
cd $HOME/.terraform.d
touch credentials.tfrc.json
chmod 777 credentials.tfrc.json
echo "{\"credentials\": {\"app.terraform.io\": {\"token\": \"${{ secrets.TF_API_TOKEN }}\"}}}" > credentials.tfrc.json
sudo cat credentials.tfrc.json
tree $HOME/.terraform.d
echo "✅ Terraform CLI config directory created!"

- name: Run symlink-modules.sh and select workspace
run: |
./symlink-modules.sh
Expand Down

0 comments on commit e5a412e

Please sign in to comment.