Skip to content

Commit

Permalink
Merge pull request #82 from kbst/updatetfversion
Browse files Browse the repository at this point in the history
Update Terraform version used during tests
  • Loading branch information
pst authored Feb 19, 2021
2 parents 73f2c3c + c969d28 commit 5f31958
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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]
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
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

0 comments on commit 5f31958

Please sign in to comment.