Andrevile runs workflow for develop deploy #7
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
name: Deploy | |
on: | |
workflow_dispatch: | |
inputs: | |
user_name: | |
description: 배포한 사용자 | |
required: true | |
type: string | |
stage_choice: | |
description: 배포 유형 (production,devleop) | |
type: choice | |
options: | |
- develop | |
- production | |
run-name: '${{inputs.user_name}} runs workflow for ${{inputs.stage_choice}} deploy' | |
jobs: | |
env: | |
name: setup environment variables | |
runs-on: ubuntu-latest | |
env: | |
stage: ${{inputs.stage_choice}} | |
build_script_path: ./tools/build.sh | |
steps: | |
- name: Get variables | |
id: variables | |
run: | | |
echo STAGE : ${{inputs.stage_choice}} | |
deploy: | |
uses: './.github/workflows/deploy-integration.yml' | |
with: | |
user_name: ${{inputs.user_name}} | |
stage: ${{inputs.stage_choice}} |