-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from kbst/updatetfversion
Update Terraform version used during tests
- Loading branch information
Showing
2 changed files
with
11 additions
and
11 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: push | |
|
||
env: | ||
GO_VERSION: ">=1.15" | ||
TERRAFORM_VERSION: "0.13.4" | ||
TERRAFORM_VERSION: "0.14.7" | ||
|
||
jobs: | ||
tf_acc_tests: | ||
|
@@ -59,14 +59,14 @@ jobs: | |
|
||
- name: 'Prepare terraform-plugins' | ||
run: | | ||
mkdir -p ./dist/.terraform/plugins/registry.terraform.io/kbst/kustomization/1.0.0/linux_amd64 | ||
cp ./dist/terraform-provider-kustomization_linux_amd64/terraform-provider-kustomization_v* ./dist/.terraform/plugins/registry.terraform.io/kbst/kustomization/1.0.0/linux_amd64/terraform-provider-kustomization_v1.0.0 | ||
mkdir -p ./dist/terraform.d/plugins/registry.terraform.io/kbst/kustomization/1.0.0/linux_amd64 | ||
cp ./dist/terraform-provider-kustomization_linux_amd64/terraform-provider-kustomization_v* ./dist/terraform.d/plugins/registry.terraform.io/kbst/kustomization/1.0.0/linux_amd64/terraform-provider-kustomization_v1.0.0 | ||
- name: 'Upload terraform-plugins' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: terraform-plugins | ||
path: dist/.terraform/plugins | ||
path: dist/terraform.d/plugins | ||
|
||
int_test_kubeconfig_path: | ||
runs-on: ubuntu-latest | ||
|
@@ -86,10 +86,10 @@ jobs: | |
uses: actions/download-artifact@v2 | ||
with: | ||
name: terraform-plugins | ||
path: .terraform/plugins | ||
path: terraform.d/plugins | ||
|
||
- name: 'Ensure provider is executable' | ||
run: chmod +x .terraform/plugins/registry.terraform.io/kbst/kustomization/1.0.0/linux_amd64/terraform-provider-kustomization_v1.0.0 | ||
run: chmod +x terraform.d/plugins/registry.terraform.io/kbst/kustomization/1.0.0/linux_amd64/terraform-provider-kustomization_v1.0.0 | ||
|
||
- name: 'Setup Kind' | ||
uses: engineerd/[email protected] | ||
|
@@ -129,10 +129,10 @@ jobs: | |
uses: actions/download-artifact@v2 | ||
with: | ||
name: terraform-plugins | ||
path: .terraform/plugins | ||
path: terraform.d/plugins | ||
|
||
- name: 'Ensure provider is executable' | ||
run: chmod +x .terraform/plugins/registry.terraform.io/kbst/kustomization/1.0.0/linux_amd64/terraform-provider-kustomization_v1.0.0 | ||
run: chmod +x terraform.d/plugins/registry.terraform.io/kbst/kustomization/1.0.0/linux_amd64/terraform-provider-kustomization_v1.0.0 | ||
|
||
- name: 'Create provider.tf with kubeconfig_raw' | ||
run: | | ||
|
@@ -172,10 +172,10 @@ jobs: | |
uses: actions/download-artifact@v2 | ||
with: | ||
name: terraform-plugins | ||
path: .terraform/plugins | ||
path: terraform.d/plugins | ||
|
||
- name: 'Ensure provider is executable' | ||
run: chmod +x .terraform/plugins/registry.terraform.io/kbst/kustomization/1.0.0/linux_amd64/terraform-provider-kustomization_v1.0.0 | ||
run: chmod +x terraform.d/plugins/registry.terraform.io/kbst/kustomization/1.0.0/linux_amd64/terraform-provider-kustomization_v1.0.0 | ||
|
||
- name: 'Set KUBECONFIG env var' | ||
run: | | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
build: | ||
go build -o .terraform/plugins/registry.terraform.io/kbst/kustomization/1.0.0/linux_amd64/terraform-provider-kustomization | ||
go build -o terraform.d/plugins/registry.terraform.io/kbst/kustomization/1.0.0/linux_amd64/terraform-provider-kustomization | ||
|
||
test: | ||
TF_ACC=1 go test -v ./kustomize |