Closed aminebizid closed 1 year ago
as workaround I downloaded terraform in my docker image then I copied it cp /terraform /runner/_work/my_mlops_project/my_mlops_project/my_mlops_project/.databricks/bundle/test/bin/
integration_test:
needs: unit_tests
runs-on: self-hosted
steps:
- name: Checkout repo
uses: actions/checkout@v3
- uses: databricks/setup-cli@main
- name: Validate Bundle For Test Environment in Staging Workspace
id: validate
run: |
databricks bundle validate -e test
- name: patch terraform
id: patch_terraform
run: |
cp /terraform /runner/_work/my_mlops_project/my_mlops_project/my_mlops_project/.databricks/bundle/test/bin/
- name: Deploy Bundle to Test Environment in Staging Workspace
id: deploy
run: |
databricks bundle deploy -e test
- name: Run Feature Engineering Workflow for Test Environment in Staging Workspace
id: feature_engineering
run: |
databricks bundle run write_feature_table_job -e test
- name: Run Training Workflow for Test Environment in Staging Workspace
id: training
run: |
databricks bundle run model_training_job -e test
Hello, I get this error when running command databricks bundle deploy -e test
Error: terraform init: fork/exec /runner/_work/my_mlops_project/my_mlops_project/my_mlops_project/.databricks/bundle/test/bin/terraform: exec format error
Im running on a ubuntu-20.04 linux/amd64 as github action runner
If it can help: ls -l /runner/_work/my_mlops_project/my_mlops_project/my_mlops_project/.databricks/bundle/test/bin/terraform -rwxr-xr-x 1 runner runner 71156112 Jul 6 09:57 /runner/_work/my_mlops_project/my_mlops_project/my_mlops_project/.databricks/bundle/test/bin/terraform