Skip to content

Commit

Permalink
Merge pull request #31 from Pearson-Advance/vue/PADV-325
Browse files Browse the repository at this point in the history
PADV 325 - Integrate the build process with ecommerce.
  • Loading branch information
alexjmpb authored and Squirrel18 committed May 9, 2023
2 parents 7794a76 + b2a48b0 commit 1b15f4f
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-push-image-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Tutor Build Action Test

on:
push:
branches:
- 'pearson-release/olive.main'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DD-HH-mm
- name: Build Image
uses: Pearson-Advance/[email protected]
with:
python-version: ${{ vars.BUILD_PYTHON_VERSION }}
tutor-version: ${{ vars.BUILD_TUTOR_VERSION }}
path-image-to-be-built: 'env/plugins/ecommerce/build/ecommerce'
repository-name: ${{ vars.BUILD_MAIN_REPOSITORY_NAME }}
image-name: ${{ vars.BUILD_MAIN_IMAGE_NAME }}
image-tag: ${{ vars.ECOMMERCE_TUTOR_PLUGIN_VERSION }}-${{ steps.current-time.outputs.formattedTime }}
docker-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-token: ${{ secrets.DOCKERHUB_TOKEN }}
use-docker-cache: ${{ vars.BUILD_USE_CACHE }}
tutor-plugin-sources: '("git+https://github.com/overhangio/tutor-ecommerce.git@v${{ vars.ECOMMERCE_TUTOR_PLUGIN_VERSION }}" "git+https://github.com/overhangio/[email protected]" "git+https://github.com/overhangio/[email protected]")'
tutor-plugin-names: '("ecommerce" "discovery" "mfe")'
30 changes: 30 additions & 0 deletions .github/workflows/build-push-image-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Tutor Build Action Test

on:
push:
branches:
- 'pearson-release/olive.stage'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DD-HH-mm
- name: Build Image
uses: Pearson-Advance/[email protected]
with:
python-version: ${{ vars.BUILD_PYTHON_VERSION }}
tutor-version: ${{ vars.BUILD_TUTOR_VERSION }}
path-image-to-be-built: 'env/plugins/ecommerce/build/ecommerce'
repository-name: ${{ vars.BUILD_STAGE_REPOSITORY_NAME }}
image-name: ${{ vars.BUILD_STAGE_IMAGE_NAME }}
image-tag: ${{ vars.ECOMMERCE_TUTOR_PLUGIN_VERSION }}-RC-${{ steps.current-time.outputs.formattedTime }}
docker-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-token: ${{ secrets.DOCKERHUB_TOKEN }}
use-docker-cache: ${{ vars.BUILD_USE_CACHE }}
tutor-plugin-sources: '("git+https://github.com/overhangio/tutor-ecommerce.git@v${{ vars.ECOMMERCE_TUTOR_PLUGIN_VERSION }}" "git+https://github.com/overhangio/[email protected]" "git+https://github.com/overhangio/[email protected]")'
tutor-plugin-names: '("ecommerce" "discovery" "mfe")'

0 comments on commit 1b15f4f

Please sign in to comment.