Skip to content

Build 'mfe' image for 'teak-demo' on branch 'main' #16

Build 'mfe' image for 'teak-demo' on branch 'main'

Build 'mfe' image for 'teak-demo' on branch 'main' #16

Workflow file for this run

name: Build Service Image
run-name: Build '${{ inputs.SERVICE }}' image for '${{ inputs.INSTANCE_NAME }}' on branch '${{ inputs.STRAIN_REPOSITORY_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 }}