Skip to content

Merge pull request #42 from Pearson-Advance/pearson/PADV-1034 #27

Merge pull request #42 from Pearson-Advance/pearson/PADV-1034

Merge pull request #42 from Pearson-Advance/pearson/PADV-1034 #27

name: Tutor Build Action Test
on:
push:
branches:
- 'pearson-release/olive.stage'
jobs:
Build:
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'
organization-name: ${{ vars.BUILD_ORGANIZATION_NAME }}
repository-name: ${{ vars.BUILD_REPOSITORY_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/Pearson-Advance/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")'
tutor-pearson-plugin-url: ${{ vars.TUTOR_PEARSON_PLUGIN_URL }}
tutor-pearson-plugin-name: 'pearson-plugin-ecommerce-stg'