fix: fix tf acc test pipeline
Some checks failed
CI Workflow / Prepare GO cache (pull_request) Has been cancelled
CI Workflow / Test readiness for publishing provider (pull_request) Has been cancelled
CI Workflow / CI run tests (pull_request) Has been cancelled
CI Workflow / CI run build and linting (pull_request) Has been cancelled
CI Workflow / Code coverage report (pull_request) Has been cancelled
CI Workflow / Check GoReleaser config (pull_request) Has been cancelled
Some checks failed
CI Workflow / Prepare GO cache (pull_request) Has been cancelled
CI Workflow / Test readiness for publishing provider (pull_request) Has been cancelled
CI Workflow / CI run tests (pull_request) Has been cancelled
CI Workflow / CI run build and linting (pull_request) Has been cancelled
CI Workflow / Code coverage report (pull_request) Has been cancelled
CI Workflow / Check GoReleaser config (pull_request) Has been cancelled
This commit is contained in:
parent
4f10919818
commit
f783c566fb
2 changed files with 7 additions and 5 deletions
10
.github/actions/acc_test/action.yaml
vendored
10
.github/actions/acc_test/action.yaml
vendored
|
|
@ -36,10 +36,9 @@ inputs:
|
|||
default: 'eu01'
|
||||
required: true
|
||||
|
||||
service_account_json:
|
||||
service_account_json_content:
|
||||
description: "STACKIT service account JSON file contents"
|
||||
required: true
|
||||
default: ""
|
||||
|
||||
service_account_json_file_path:
|
||||
description: "STACKIT service account JSON file contents"
|
||||
|
|
@ -107,8 +106,11 @@ runs:
|
|||
run: |
|
||||
set -e
|
||||
if [[ ! -f "${{ inputs.service_account_json_file_path }}" ]]; then
|
||||
echo "unable to find service account file '${{ inputs.service_account_json_file_path }}'"
|
||||
exit 1
|
||||
if [[ -z "${{ inputs.service_account_json_file_content }}" ]]; then
|
||||
echo "unable to find service account file '${{ inputs.service_account_json_file_path }}' \n and service_account_json_file_content is empty"
|
||||
exit 1
|
||||
fi
|
||||
echo "${{ inputs.service_account_json_file_content }}" > "${{ inputs.service_account_json_file_path }}"
|
||||
fi
|
||||
cat "${{ inputs.service_account_json_file_path }}"
|
||||
|
||||
|
|
|
|||
2
.github/workflows/tf-acc-test.yaml
vendored
2
.github/workflows/tf-acc-test.yaml
vendored
|
|
@ -27,7 +27,7 @@ jobs:
|
|||
go-version: ${{ env.GO_VERSION }}
|
||||
project_id: ${{ vars.TEST_PROJECT_ID }}
|
||||
region: 'eu01'
|
||||
service_account_json: ${{ secrets.TF_ACC_SERVICE_ACCOUNT_JSON }}
|
||||
service_account_json_content: "${{ secrets.TF_ACC_SERVICE_ACCOUNT_JSON }}"
|
||||
project_user_email: ${{ vars.TEST_PROJECT_USER_EMAIL }}
|
||||
tf_acc_kek_key_id: ${{ vars.TEST_KEK_KEY_ID }}
|
||||
tf_acc_kek_key_ring_id: ${{ vars.TEST_KEK_KEY_RING_ID }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue