-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache key should be unique per workspace (#49)
- Loading branch information
1 parent
a354581
commit a94f1bd
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,10 +78,10 @@ jobs: | |
service_account: ${{ inputs.service_account }} | ||
workload_identity_provider: ${{ inputs.workload_identity_provider }} | ||
|
||
# GitHub - Setup SSH for Module Access | ||
# GitHub - Setup SSH for private module access | ||
# Uncomment if you have private modules | ||
|
||
# - name: Step ssh for private module access | ||
# - name: Private module access | ||
# run: | | ||
# ssh-agent -a $SSH_AUTH_SOCK | ||
# mkdir -p ~/.ssh | ||
|
@@ -98,12 +98,12 @@ jobs: | |
${{ inputs.working_directory }}/.terraform | ||
${{ inputs.working_directory }}/.terraform.lock.hcl | ||
${{ inputs.working_directory }}/plan.out.gpg | ||
key: cache-${{ github.run_id }}-${{ github.run_attempt }} | ||
key: ${{ inputs.terraform_workspace }}-${{ github.run_id }}-${{ github.run_attempt }} | ||
|
||
# HashiCorp - Setup Terraform | ||
# https://github.com/marketplace/actions/hashicorp-setup-terraform | ||
|
||
- name: Setup Terraform | ||
- name: Terraform setup | ||
uses: hashicorp/[email protected] | ||
with: | ||
terraform_version: ${{ inputs.terraform_version }} | ||
|
@@ -180,10 +180,10 @@ jobs: | |
service_account: ${{ inputs.service_account }} | ||
workload_identity_provider: ${{ inputs.workload_identity_provider }} | ||
|
||
# GitHub - Setup SSH for Module Access | ||
# GitHub - Setup SSH for private module access | ||
# Uncomment if you have private modules | ||
|
||
# - name: Step ssh for private module access | ||
# - name: Private module access | ||
# run: | | ||
# ssh-agent -a $SSH_AUTH_SOCK | ||
# mkdir -p ~/.ssh | ||
|
@@ -200,7 +200,7 @@ jobs: | |
${{ inputs.working_directory }}/.terraform | ||
${{ inputs.working_directory }}/.terraform.lock.hcl | ||
${{ inputs.working_directory }}/plan.out.gpg | ||
key: cache-${{ github.run_id }}-${{ github.run_attempt }} | ||
key: ${{ inputs.terraform_workspace }}-${{ github.run_id }}-${{ github.run_attempt }} | ||
|
||
# Decrypt - Terraform plan.out | ||
|
||
|
@@ -210,7 +210,7 @@ jobs: | |
# HashiCorp - Setup Terraform | ||
# https://github.com/marketplace/actions/hashicorp-setup-terraform | ||
|
||
- name: Setup Terraform | ||
- name: Terraform setup | ||
uses: hashicorp/[email protected] | ||
with: | ||
terraform_version: ${{ inputs.terraform_version }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ module "test" { | |
|
||
labels = { | ||
environment = "sandbox" | ||
test = "xx" | ||
test = "foo" | ||
} | ||
|
||
prefix = "testing" | ||
|