Skip to content

Commit

Permalink
fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Glutamat42 committed Dec 14, 2024
1 parent 86e0677 commit 80e1f6e
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,42 @@ on:
jobs:
release:
runs-on: ubuntu-latest
needs: define-matrix
permissions:
contents: write
packages: write
strategy:
matrix:
moodle_version: [ '4.4', '4.5' ]
env:
REGISTRY: ghcr.io
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags)
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/projektadler/adler-moodle
tags: |
type=raw,value=moodle-${{ matrix.moodle_version }}
type=semver,pattern={{version}}-moodle-${{ matrix.moodle_version }}
type=semver,pattern={{major}}.{{minor}}-moodle-${{ matrix.moodle_version }}
type=semver,pattern={{major}}-moodle-${{ matrix.moodle_version }}
- name: Build Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
build-args: |
MOODLE_VERSION=${{ matrix.moodle_version }}
file: Dockerfile
push: true
tags: adler-moodle:${{ matrix.moodle_version }}-${{ github.event.release.tag_name }}
tags: ${{ steps.meta.outputs.tags }}

#
# - name: Prepare release body (description)
Expand Down

0 comments on commit 80e1f6e

Please sign in to comment.