Build 'openedx' image for 'teak-demo' on 'main' branch #17
This file contains hidden or 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
name: Build Service Image | |
run-name: Build '${{ inputs.SERVICE }}' image for '${{ inputs.INSTANCE_NAME }}' on '${{ inputs.STRAIN_REPOSITORY_BRANCH }}' branch | |
on: | |
workflow_dispatch: | |
inputs: | |
INSTANCE_NAME: | |
description: "Instance to build" | |
type: string | |
SERVICE: | |
description: "Service to build" | |
default: "openedx" | |
type: choice | |
options: | |
- openedx | |
- mfe | |
STRAIN_REPOSITORY_BRANCH: | |
description: "Branch to clone the strain from" | |
default: "main" | |
type: string | |
BUILDKIT_MAX_PARALLELISM: | |
description: "Number of layers to build at the same time." | |
default: "3" | |
type: string | |
jobs: | |
build: | |
permissions: | |
contents: write | |
name: Build with Picasso | |
uses: eduNEXT/picasso/.github/workflows/build.yml@main | |
with: | |
BUILDKIT_MAX_PARALLELISM: ${{ fromJSON(inputs.BUILDKIT_MAX_PARALLELISM) }} | |
STRAIN_REPOSITORY: ${{ github.repository }} | |
STRAIN_REPOSITORY_BRANCH: ${{ inputs.STRAIN_REPOSITORY_BRANCH }} | |
STRAIN_PATH: "instances/${{ inputs.INSTANCE_NAME }}" | |
SERVICE: ${{ inputs.SERVICE }} | |
USE_DYNAMIC_IMAGE_TAG: true | |
UPDATE_IMAGE_TAG_IN_REPO: true | |
ADD_RANDOM_SUFFIX_TO_IMAGE_TAG: true | |
RANDOM_SUFFIX_LENGTH: "8" | |
TIMESTAMP_FORMAT: "%Y%m%d" | |
PICASSO_VERSION: main | |
secrets: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: ${{ secrets.AWS_REGION }} | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} |