fix: builder and sdk changes #81
1 changed files with 6 additions and 6 deletions
12
.github/actions/acc_test/action.yaml
vendored
12
.github/actions/acc_test/action.yaml
vendored
|
|
@ -43,7 +43,7 @@ inputs:
|
||||||
service_account_json_file_path:
|
service_account_json_file_path:
|
||||||
description: "STACKIT service account JSON file contents"
|
description: "STACKIT service account JSON file contents"
|
||||||
required: true
|
required: true
|
||||||
default: './service_account.json'
|
default: 'service_account.json'
|
||||||
|
|
||||||
test_file:
|
test_file:
|
||||||
description: "testfile to run"
|
description: "testfile to run"
|
||||||
|
|
@ -132,14 +132,14 @@ runs:
|
||||||
set -e
|
set -e
|
||||||
if [ ! -f "${{ inputs.service_account_json_file_path }}" ]; then
|
if [ ! -f "${{ inputs.service_account_json_file_path }}" ]; then
|
||||||
echo "unable to find service account file '${{ inputs.service_account_json_file_path }}'"
|
echo "unable to find service account file '${{ inputs.service_account_json_file_path }}'"
|
||||||
if [ -z "${{ inputs.service_account_json_content }}" ]; then
|
if [[ "${{ inputs.service_account_json_content }}" == "" ]]; then
|
||||||
echo "ERROR: service_account_json_file_content MUST NOT be empty if account file is missing"
|
echo "ERROR: service_account_json_file_content MUST NOT be empty if account file is missing"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "creating service account file '${{ inputs.service_account_json_file_path }}'"
|
echo "creating service account file '${{ inputs.service_account_json_file_path }}'"
|
||||||
echo "${{ inputs.service_account_json_content }}" > "${{ inputs.service_account_json_file_path }}"
|
echo "${{ inputs.service_account_json_content }}" > stackit/"${{ inputs.service_account_json_file_path }}"
|
||||||
fi
|
fi
|
||||||
ls -l "${{ inputs.service_account_json_file_path }}"
|
ls -l stackit/"${{ inputs.service_account_json_file_path }}"
|
||||||
|
|
||||||
- name: Run acceptance test file
|
- name: Run acceptance test file
|
||||||
if: ${{ inputs.test_file != '' }}
|
if: ${{ inputs.test_file != '' }}
|
||||||
|
|
@ -154,7 +154,7 @@ runs:
|
||||||
TF_ACC_PROJECT_ID=${TF_ACC_PROJECT_ID} \
|
TF_ACC_PROJECT_ID=${TF_ACC_PROJECT_ID} \
|
||||||
TF_ACC_REGION=${TF_ACC_REGION} \
|
TF_ACC_REGION=${TF_ACC_REGION} \
|
||||||
TF_ACC_TEST_PROJECT_USER_EMAIL=${TF_ACC_TEST_PROJECT_USER_EMAIL} \
|
TF_ACC_TEST_PROJECT_USER_EMAIL=${TF_ACC_TEST_PROJECT_USER_EMAIL} \
|
||||||
TF_ACC_SERVICE_ACCOUNT_FILE=../"${{ inputs.service_account_json_file_path }}" \
|
TF_ACC_SERVICE_ACCOUNT_FILE="${{ inputs.service_account_json_file_path }}" \
|
||||||
TF_ACC_KEK_KEY_ID=${TF_ACC_KEK_KEY_ID} \
|
TF_ACC_KEK_KEY_ID=${TF_ACC_KEK_KEY_ID} \
|
||||||
TF_ACC_KEK_KEY_RING_ID=${TF_ACC_KEK_KEY_RING_ID} \
|
TF_ACC_KEK_KEY_RING_ID=${TF_ACC_KEK_KEY_RING_ID} \
|
||||||
TF_ACC_KEK_KEY_VERSION=${TF_ACC_KEK_KEY_VERSION} \
|
TF_ACC_KEK_KEY_VERSION=${TF_ACC_KEK_KEY_VERSION} \
|
||||||
|
|
@ -182,7 +182,7 @@ runs:
|
||||||
TF_ACC_PROJECT_ID=${TF_ACC_PROJECT_ID} \
|
TF_ACC_PROJECT_ID=${TF_ACC_PROJECT_ID} \
|
||||||
TF_ACC_REGION=${TF_ACC_REGION} \
|
TF_ACC_REGION=${TF_ACC_REGION} \
|
||||||
TF_ACC_TEST_PROJECT_USER_EMAIL=${TF_ACC_TEST_PROJECT_USER_EMAIL} \
|
TF_ACC_TEST_PROJECT_USER_EMAIL=${TF_ACC_TEST_PROJECT_USER_EMAIL} \
|
||||||
TF_ACC_SERVICE_ACCOUNT_FILE=../"${{ inputs.service_account_json_file_path }}" \
|
TF_ACC_SERVICE_ACCOUNT_FILE="${{ inputs.service_account_json_file_path }}" \
|
||||||
TF_ACC_KEK_KEY_ID=${TF_ACC_KEK_KEY_ID} \
|
TF_ACC_KEK_KEY_ID=${TF_ACC_KEK_KEY_ID} \
|
||||||
TF_ACC_KEK_KEY_RING_ID=${TF_ACC_KEK_KEY_RING_ID} \
|
TF_ACC_KEK_KEY_RING_ID=${TF_ACC_KEK_KEY_RING_ID} \
|
||||||
TF_ACC_KEK_KEY_VERSION=${TF_ACC_KEK_KEY_VERSION} \
|
TF_ACC_KEK_KEY_VERSION=${TF_ACC_KEK_KEY_VERSION} \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue