tutor-plugin-enable-s3
Github Action to install and enable the Tutor plugin hastexo/tutor-contrib-s3
Usage:
name: Example workflow
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
env:
ENABLE_S3: true
steps:
# required antecedent
- uses: actions/[email protected]
# required antecedent
- name: Configure AWS credentials
uses: aws-actions/[email protected]
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
- name: Install and configure kubectl
run: |-
sudo snap install kubectl --channel=1.23/stable --classic
aws eks --region us-east-2 update-kubeconfig --name mrionline-global-live --alias eks-prod
# install Tutor which we'll use for configuring and deploying Open edX
- name: Install Tutor
run: |-
sudo apt install python3 python3-pip libyaml-dev
pip install --upgrade pyyaml
echo "TUTOR_ROOT=$GITHUB_WORKSPACE/tutor" >> $GITHUB_ENV
pip install tutor
shell: bash
# This action.
- name: Enable tutor plugin - S3
uses: openedx-actions/[email protected]
if: ${{ env.ENABLE_S3 == 'true' }}
with:
namespace: openedx-prod