Skip to content

Commit

Permalink
build: tf git config
Browse files Browse the repository at this point in the history
  • Loading branch information
okradze committed Jan 24, 2024
1 parent e1391c6 commit fa413c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tf_apply_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.github_personal_access_token }}
TF_WORKSPACE: ${{ inputs.gh_environment }}
run: |
git config --global url."https://okradze:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
git config --global url."https://oauth2:${secrets.github_personal_access_token}@github.com".insteadOf "git@github.com"
terraform init
# - name: Terraform Workspace Creation
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tf_plan_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.github_personal_access_token }}
TF_WORKSPACE: ${{ inputs.gh_environment }}
run: |
git config --global url."https://okradze:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
git config --global url."https://oauth2:${secrets.github_personal_access_token}@github.com".insteadOf "git@github.com"
terraform init
- name: Terraform Validate
Expand Down
3 changes: 1 addition & 2 deletions apps/server/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ resource "azurerm_resource_group" "l3_resource_group" {


module "backend" {
# source = "[email protected]:l3vels/l3-infra.git//service/azure"
source = "git::https://github.com/l3vels/l3-infra.git//service/azure"
source = "[email protected]:l3vels/l3-infra.git//service/azure"

unique_id = local.subdomain
// azure_location = var.azure_location
Expand Down

0 comments on commit fa413c5

Please sign in to comment.