Skip to content
Open

Dev #38823

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy Open edX Production

on:
push:
branches: [main]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Deploy to production LMS
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.OPENEDX_PROD_HOST }}
username: ${{ secrets.OPENEDX_PROD_USER }}
key: ${{ secrets.OPENEDX_PROD_SSH_KEY }}
script: |
set -e
cd /opt/performu-openedx
git fetch origin
git checkout main
git pull origin main
tutor config save
tutor images build openedx
tutor local restart
tutor local do init

32 changes: 32 additions & 0 deletions workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy Open edX Staging

on:
push:
branches: [dev]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Deploy to staging LMS
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.OPENEDX_STAGING_HOST }}
username: ${{ secrets.OPENEDX_STAGING_USER }}
key: ${{ secrets.OPENEDX_STAGING_SSH_KEY }}
script: |
set -e
cd /opt/performu-openedx
git fetch origin
git checkout dev
git pull origin dev
tutor config save
tutor images build openedx
tutor local restart
tutor local do init