diff --git a/.github/workflows/cicd-prod-acc.yml b/.github/workflows/cicd-prod-acc.yml new file mode 100644 index 00000000..5d1f86dc --- /dev/null +++ b/.github/workflows/cicd-prod-acc.yml @@ -0,0 +1,43 @@ +name: IaC Acceptance Tests for CI CD Prod Environment + +on: + workflow_dispatch: + +jobs: + acc-test: + uses: ./.github/workflows/reusable-dev-acc.yml + with: + test_description: Check all Terraform Testcases + test_case_folder: 'acc-testcases' + secrets: + DEV_HPEGL_IAM_SERVICE_URL: ${{ secrets.HPEGL_IAM_SERVICE_URL }} + DEV_HPEGL_TENANT_ID: ${{ secrets.HPEGL_TENANT_ID }} + DEV_HPEGL_USER_SECRET: ${{ secrets.HPEGL_USER_SECRET }} + DEV_HPEGL_USER_ID: ${{ secrets.HPEGL_USER_ID }} + DEV_HPEGL_VMAAS_API_URL: ${{ secrets.HPEGL_VMAAS_API_URL }} + DEV_HPEGL_VMAAS_LOCATION: ${{ secrets.HPEGL_VMAAS_LOCATION }} + DEV_HPEGL_VMAAS_SPACE_NAME: ${{ secrets.HPEGL_VMAAS_SPACE_NAME}} + TF_ACC: ${{ secrets.TF_ACC }} + + process-logs: + runs-on: ubuntu-20.04 + needs: + - acc-test + if: "always()" + steps: + - name: Checkout workspace + uses: actions/checkout@v4 + - name: Download logs + id: logs + uses: actions/download-artifact@v4 + with: + path: tmp/artifacts + merge-multiple: true + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Print Result and Publish + run: | + LOG_RESULT=$(python .github/parse_logs.py '${{ steps.logs.outputs.download-path }}') + echo $LOG_RESULT \ No newline at end of file