Skip to content

Commit

Permalink
remove: dynamically creating list of supported moodle versions depend…
Browse files Browse the repository at this point in the history
…ing on the plugin requirements
  • Loading branch information
Glutamat42 committed Dec 14, 2024
1 parent 860d315 commit 86e0677
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 78 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,14 @@ on:
types: [ created ]

jobs:
define-matrix:
runs-on: ubuntu-latest
outputs:
include_list: ${{ steps.moodle_versions.outputs.moodle_versions }}
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Collect list of compatible moodle versions
id: moodle_versions
run: |
supported_versions=$(bash get_supported_moodle_versions.sh)
echo "moodle_versions=$supported_versions" >> $GITHUB_OUTPUT
release:
runs-on: ubuntu-latest
needs: define-matrix
permissions:
contents: write
strategy:
matrix:
moodle_version: ${{ fromJSON(needs.define-matrix.outputs.include_list) }}
moodle_version: [ '4.4', '4.5' ]
steps:
- name: Build Docker image
uses: docker/build-push-action@v2
Expand All @@ -34,7 +21,7 @@ jobs:
build-args: |
MOODLE_VERSION=${{ matrix.moodle_version }}
file: Dockerfile
push: false
push: true
tags: adler-moodle:${{ matrix.moodle_version }}-${{ github.event.release.tag_name }}

#
Expand Down
63 changes: 0 additions & 63 deletions get_supported_moodle_versions.sh

This file was deleted.

0 comments on commit 86e0677

Please sign in to comment.