Skip to content

Workflow file for this run

name: 3. Develop ๐Ÿš€
on:
workflow_dispatch:
inputs:
deploy-api:
description: Develop API ์„œ๋ฒ„ ๋ฐฐํฌ ๐ŸŽ‰๐Ÿคฃ
type: boolean
required: false
force-rebuild:
description: ๊ฐ•์ œ ๋นŒ๋“œ
type: boolean
required: false
push:
branches:
- develop
# - 'feature/**'
pull_request:
branches:
- develop
# https://github.com/gradle/gradle-build-action#caching
permissions:
contents: write
# ํ˜„์žฌ๋Š” develop์€ build๋งŒ ํ•˜๊ณ  deploy๋Š” stage, production์—์„œ๋งŒ ํ•จ
jobs:
build:
name: ๋นŒ๋“œ & ํ…Œ์ŠคํŠธ
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
uses: ./.github/workflows/build.yml
with:
environment: develop
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
API_SERVER: https://dev.peoplehere.world
STAGE: develop
FORCE_REBUILD: ${{ inputs.force-rebuild == true }}
secrets: inherit
deploy-api:
name: ๋ฐฐํฌ - API ์„œ๋ฒ„ ๐Ÿš€๐Ÿš€๐Ÿš€
needs: [ build ]
if: ${{ contains(github.event.head_commit.message, '#api') || github.event.inputs.deploy-api == 'true' }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
id-token: write
contents: read
uses: ./.github/workflows/deploy-api.yml
with:
environment: develop
APP_VERSION: ${{ needs.build.outputs.APP_VERSION }}
CI_BUCKET_NAME: aicreation-ci
STAGE: develop
JAVA_OPTS:
LISTEN_STAGE: develop
CACHE_KEY: ${{ needs.build.outputs.CACHE_KEY }}
secrets: inherit