Manual trigger #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Manual trigger | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| limit: | |
| type: choice | |
| options: | |
| - 'no' | |
| - 'PHP8.2/MySQL8.0' | |
| - 'PHP8.2/MariaDB11' | |
| - 'PHP8.3/MySQL8.0' | |
| - 'PHP8.3/MySQL8.4' | |
| - 'PHP8.3/MariaDB11' | |
| - 'PHP8.4/MySQL8.0' | |
| - 'PHP8.4/MySQL8.4' | |
| - 'PHP8.4/MariaDb11' | |
| default: 'PHP8.3/MySQL8.0' | |
| description: 'Limit to one PHP/MySQL combination' | |
| use_dev_version: | |
| type: choice | |
| options: ['no', 'v0'] | |
| description: 'Use the dev version of github actions' | |
| default: 'no' | |
| jobs: | |
| build_testplan: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| testplan: '${{ steps.build_testplan.outputs.testplan }}' | |
| steps: | |
| - name: 'Build testplan' | |
| id: build_testplan | |
| run: | | |
| # Build testplan | |
| # shellcheck disable=SC2088 | |
| case "${{ inputs.limit }}" in | |
| "no") LIMIT='';; | |
| "PHP8.2/MySQL8.0") LIMIT='~/defaults/php8.2_mysql8.0_only.yaml,' ;; | |
| "PHP8.2/MariaDB11") LIMIT='~/defaults/php8.2_mariadb11_only.yaml,' ;; | |
| "PHP8.3/MySQL8.0") LIMIT='~/defaults/php8.3_mysql8.0_only.yaml,' ;; | |
| "PHP8.3/MySQL8.4") LIMIT='~/defaults/php8.3_mysql8.4_only.yaml,' ;; | |
| "PHP8.3/MariaDB11") LIMIT='~/defaults/php8.3_mariadb11_only.yaml,' ;; | |
| "PHP8.4/MySQL8.0") LIMIT='~/defaults/php8.4_mysql8.0_only.yaml,' ;; | |
| "PHP8.4/MySQL8.4") LIMIT='~/defaults/php8.4_mysql8.4_only.yaml,' ;; | |
| "PHP8.4/MariaDb11") LIMIT='~/defaults/php8.4_mariadb11_only.yaml,' ;; | |
| *) echo "Illegal choice, fix the workflow" | |
| exit 1 | |
| ;; | |
| esac | |
| # shellcheck disable=SC2088 | |
| TESTPLAN="~/defaults/7.4.x.yaml,${LIMIT}~/module-template.yaml" | |
| echo "testplan=${TESTPLAN}" | tee -a "${GITHUB_OUTPUT}" | |
| dispatch_stable: | |
| if: ${{ inputs.use_dev_version == 'no' }} | |
| needs: build_testplan | |
| uses: oxid-eSales/github-actions/.github/workflows/universal_workflow_light.yaml@v5 | |
| with: | |
| testplan: ${{ needs.build_testplan.outputs.testplan }} | |
| runs_on: '"ubuntu-latest"' | |
| defaults: 'v5' | |
| plan_folder: '.github/oxid-esales' | |
| secrets: | |
| DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }} | |
| DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }} | |
| CACHE_ENDPOINT: ${{ secrets.CACHE_ENDPOINT }} | |
| CACHE_ACCESS_KEY: ${{ secrets.CACHE_ACCESS_KEY }} | |
| CACHE_SECRET_KEY: ${{ secrets.CACHE_SECRET_KEY }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| dispatch_v0: | |
| if: ${{ inputs.use_dev_version == 'v0' }} | |
| needs: build_testplan | |
| uses: oxid-eSales/github-actions/.github/workflows/universal_workflow_light.yaml@v0 | |
| with: | |
| testplan: ${{ needs.build_testplan.outputs.testplan }} | |
| runs_on: '"ubuntu-latest"' | |
| defaults: 'v0' | |
| plan_folder: '.github/oxid-esales' | |
| secrets: | |
| DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }} | |
| DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }} | |
| CACHE_ENDPOINT: ${{ secrets.CACHE_ENDPOINT }} | |
| CACHE_ACCESS_KEY: ${{ secrets.CACHE_ACCESS_KEY }} | |
| CACHE_SECRET_KEY: ${{ secrets.CACHE_SECRET_KEY }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |