[FEAT] 질문이 생성된 PR만 반환되도록 수정 (#87) #69
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: Server Build & Push on Branch | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| jobs: | |
| main: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| app-name: [ gss-api-app, gss-mcp-app ] | |
| env: | |
| APP_DIR: ${{ matrix.app-name }} | |
| REGISTRY_URL: 493807290209.dkr.ecr.ap-northeast-2.amazonaws.com | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 23 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '23' | |
| distribution: 'temurin' | |
| cache: 'gradle' | |
| - name: Gradle Build | |
| uses: gradle/gradle-build-action@v2 | |
| with: | |
| arguments: clean ${{matrix.app-name}}:build | |
| cache-read-only: false | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: ap-northeast-2 | |
| - name: Login to Amazon ECR | |
| id: login-ecr | |
| uses: aws-actions/amazon-ecr-login@v2 | |
| - name: Build, tag, and push image to Amazon ECR | |
| id: build-image | |
| run: | | |
| docker build -t ${REGISTRY_URL}/${APP_DIR}:${GITHUB_REF_NAME} ${APP_DIR}/. | |
| docker push ${REGISTRY_URL}/${APP_DIR}:${GITHUB_REF_NAME} |