2020-06-30 02:12:41 +02:00
|
|
|
name: Images
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2020-08-28 15:44:49 +02:00
|
|
|
workflow_run:
|
|
|
|
workflows: ["update.sh"]
|
|
|
|
branches: [master]
|
|
|
|
types:
|
|
|
|
- completed
|
2020-06-30 02:12:41 +02:00
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: 'bash -Eeuo pipefail -x {0}'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
2022-04-13 16:02:47 +02:00
|
|
|
init:
|
2020-06-30 02:12:41 +02:00
|
|
|
name: Generate Jobs
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
strategy: ${{ steps.generate-jobs.outputs.strategy }}
|
|
|
|
steps:
|
2024-03-06 00:24:25 +01:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: docker-library/bashbrew@HEAD
|
2020-06-30 02:12:41 +02:00
|
|
|
- id: generate-jobs
|
|
|
|
name: Generate Jobs
|
|
|
|
run: |
|
2022-11-26 15:27:18 +01:00
|
|
|
strategy="$(GITHUB_REPOSITORY=nextcloud "$BASHBREW_SCRIPTS/github-actions/generate.sh")"
|
|
|
|
strategy="$("$BASHBREW_SCRIPTS/github-actions/munge-i386.sh" -c <<<"$strategy")"
|
|
|
|
echo "strategy=$strategy" >> "$GITHUB_OUTPUT"
|
2020-06-30 02:12:41 +02:00
|
|
|
jq . <<<"$strategy" # sanity check / debugging aid
|
|
|
|
|
|
|
|
test:
|
2022-04-13 16:02:47 +02:00
|
|
|
needs: init
|
|
|
|
strategy: ${{ fromJson(needs.init.outputs.strategy) }}
|
2020-06-30 02:12:41 +02:00
|
|
|
name: ${{ matrix.name }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2024-03-06 00:24:25 +01:00
|
|
|
- uses: actions/checkout@v4
|
2020-06-30 02:12:41 +02:00
|
|
|
- name: Prepare Environment
|
|
|
|
run: ${{ matrix.runs.prepare }}
|
2020-08-28 15:44:09 +02:00
|
|
|
- name: Run update.sh script
|
|
|
|
run: ./update.sh
|
2020-06-30 02:12:41 +02:00
|
|
|
- name: Pull Dependencies
|
|
|
|
run: ${{ matrix.runs.pull }}
|
|
|
|
- name: Build ${{ matrix.name }}
|
|
|
|
run: ${{ matrix.runs.build }}
|
|
|
|
- name: History ${{ matrix.name }}
|
|
|
|
run: ${{ matrix.runs.history }}
|
|
|
|
- name: Test ${{ matrix.name }}
|
|
|
|
run: ${{ matrix.runs.test }}
|
|
|
|
- name: '"docker images"'
|
|
|
|
run: ${{ matrix.runs.images }}
|
2022-04-13 16:02:47 +02:00
|
|
|
|
|
|
|
summary:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: test
|
|
|
|
|
|
|
|
if: always()
|
|
|
|
|
|
|
|
name: images-test-summary
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Summary status
|
|
|
|
run: if ${{ needs.test.result != 'success' && needs.test.result != 'skipped' }}; then exit 1; fi
|