05. Deploy FE (Development) #41
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: 05. Deploy FE (Development) | |
on: | |
workflow_dispatch: | |
inputs: | |
build_variant: | |
description: 'Select the Yarn build variant' | |
required: false | |
default: 'build:staging' | |
type: choice | |
options: | |
- build:staging | |
- build:staging:unminified | |
workflow_call: | |
inputs: | |
branch_name: | |
description: 'The branch that will be deployed' | |
required: false | |
type: string | |
build_variant: | |
default: 'build:staging' | |
required: false | |
type: string | |
jobs: | |
build-and-push: | |
uses: ./.github/workflows/build-and-push.yml | |
with: | |
docker_image_name: judge_web_fe | |
dockerfile_name: Dockerfile.fe | |
docker_tag: dev-latest | |
branch_name: ${{ inputs.branch_name || 'v2-development' }} | |
build_args: YARN_BUILD_COMMAND=${{ inputs.build_variant }} | |
additional_run_commands: | | |
export NODE_OPTIONS=--max-old-space-size=8192 | |
secrets: inherit | |
deploy: | |
needs: [build-and-push] | |
uses: ./.github/workflows/deploy.yml | |
secrets: | |
webhook_url: ${{ secrets.FE_WEBHOOK_URL }} | |
webhook_secret: ${{ secrets.WEBHOOK_SECRET }} | |
docker_username: ${{ secrets.SOFTUNIBUILD_USER }} | |
docker_password: ${{ secrets.SOFTUNIBUILD_PAT }} |