Skip to content

0.1.3

0.1.3 #4

Workflow file for this run

name: Moodle Plugin CI
on:
release:
types: [ created ]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
moodle_version: [ '4.4', '4.5' ]
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Build Docker image
uses: docker/build-push-action@v2
with:
context: .
build-args: |
MOODLE_VERSION=${{ matrix.moodle_version }}
file: Dockerfile
push: true
tags: adler-moodle:${{ matrix.moodle_version }}-${{ github.event.release.tag_name }}
#
# - name: Prepare release body (description)
# id: prep_body
# run: |
# echo "${{ github.event.release.body }}" > changes.md
#
# - name: Discord notification
# uses: appleboy/discord-action@master
# with:
# webhook_id: ${{ secrets.DISCORD_RELEASE_CHANNEL_WEBHOOK_ID }}
# webhook_token: ${{ secrets.DISCORD_RELEASE_CHANNEL_WEBHOOK_TOKEN }}
# username: GitHub Releases
# message: "New release of **${{ github.repository }}**\nVersion: ${{ github.ref_name }} (${{github.event.release.name}})\n<${{ github.event.release.html_url }}>"
# file: changes.md