fix: pipeline_fix #99
2 changed files with 9 additions and 16 deletions
6
.github/actions/clean_up/action.yaml
vendored
6
.github/actions/clean_up/action.yaml
vendored
|
|
@ -167,9 +167,11 @@ runs:
|
||||||
if: ${{ inputs.list_only != 'true' }}
|
if: ${{ inputs.list_only != 'true' }}
|
||||||
run: |
|
run: |
|
||||||
echo "::group::delete PostgreSQL Flex resources"
|
echo "::group::delete PostgreSQL Flex resources"
|
||||||
set -e
|
|
||||||
stackit auth activate-service-account --service-account-key-path .svc_acc.json
|
stackit auth activate-service-account --service-account-key-path .svc_acc.json
|
||||||
for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} postgresflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id'); do stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} postgresflex instance delete "$s" --force; done
|
for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} postgresflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id');
|
||||||
|
do
|
||||||
|
stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} postgresflex instance delete "$s" --force;
|
||||||
|
done
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
|
||||||
19
.github/workflows/tf-acc-test.yaml
vendored
19
.github/workflows/tf-acc-test.yaml
vendored
|
|
@ -44,16 +44,9 @@ jobs:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
time=$(date --rfc-3339=ns)
|
time=$(date --rfc-3339=ns)
|
||||||
echo "start_time=$time"
|
echo "start_time=$time" >> ${GITHUB_OUTPUT}
|
||||||
echo "start_time=$time" >> ${GITHUB_ENV}
|
|
||||||
start=$(date +%s%N)
|
start=$(date +%s%N)
|
||||||
echo "start=$start"
|
echo "start=$start" >> ${GITHUB_OUTPUT}
|
||||||
echo "start=$start" >> ${GITHUB_ENV}
|
|
||||||
|
|
||||||
- name: debug
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "start_time: ${{ steps.start_time.outputs.start_time }}"
|
|
||||||
|
|
||||||
- name: Notify
|
- name: Notify
|
||||||
uses: ./.github/actions/notify
|
uses: ./.github/actions/notify
|
||||||
|
|
@ -107,15 +100,13 @@ jobs:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
echo "end_time=$(date --rfc-3339=ns)" >> ${GITHUB_ENV}
|
echo "end_time=$(date --rfc-3339=ns)" >> ${GITHUB_OUTPUT}
|
||||||
end=$(date +%s%N)
|
end=$(date +%s%N)
|
||||||
echo "end=${end}" >> ${GITHUB_ENV}
|
echo "end=${end}" >> ${GITHUB_OUTPUT}
|
||||||
start=${{ steps.start_time.outputs.start }}
|
start=${{ steps.start_time.outputs.start }}
|
||||||
diff=$((end-start))
|
diff=$((end-start))
|
||||||
echo "diff=${diff}"
|
|
||||||
duration=$(printf "%s.%s" "${diff:0: -9}" "${diff: -9:3}")
|
duration=$(printf "%s.%s" "${diff:0: -9}" "${diff: -9:3}")
|
||||||
echo "duration=${duration}"
|
echo "duration=${duration}" >> ${GITHUB_OUTPUT}
|
||||||
echo "duration=${duration}" >> ${GITHUB_ENV}
|
|
||||||
|
|
||||||
- name: Notify
|
- name: Notify
|
||||||
uses: ./.github/actions/notify
|
uses: ./.github/actions/notify
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue