forked from openedx-unsupported/ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding image building action to the workflow
- Loading branch information
1 parent
7794a76
commit b2a48b0
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")' |