forked from openedx-unsupported/ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.44 KB
/
build-push-image-stage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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'