DEPRECATED tutor version 14.x and newer includes a managed build of mfe. Hereon, you should use the managed container.
Github Action to install and enable the Tutor plugin - Open edX Micro Front-end (MFE) service
name: Example workflow
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
# required antecedent
- uses: actions/checkout@v3.0.2
# required antecedent
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1.6.1
with:
aws-access-key-id: ${{ secrets.THE_NAME_OF_YOUR_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.THE_NAME_OF_YOUR_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
# install and configure tutor and kubectl
- name: Configure Github workflow environment
uses: openedx-actions/tutor-k8s-init@v0.0.1
# Build the Micro Front-end container
- name: Build the image and upload to AWS ECR
uses: openedx-actions/tutor-plugin-build-mfe@0.1.1
with:
aws-ecr-repository: openedx_mfe
subdomain: 'www'
domain-name: 'example.com'
site-name: 'School of Rock'
# This action.
- name: Enable tutor plugin - MFE
uses: openedx-actions/tutor-enable-plugin-mfe@v0.0.1
with:
aws-ecr-uri: 123456789012.dkr.ecr.us-east-2.amazonaws.com/openedx_mfe:latest