diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..9cf3e17 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,17 @@ +name: Sync with private repo + +on: + push: + branches: [ master ] + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Add remote + run: git remote add overhangio https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_PASSWORD }}@git.overhang.io/core/tutor-discovery.git + - name: Push + run: git push overhangio master diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a98f91c..c39581a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ variables: TUTOR_IMAGES: discovery TUTOR_PYPI_PACKAGE: tutor-discovery OPENEDX_RELEASE: lilac + GITHUB_REPO: overhangio/tutor-discovery include: - project: 'community/tutor-ci'