Skip to content

[DPMBE-86] ContentCachingRequestWrapper캐싱 이슈 해결 #59

[DPMBE-86] ContentCachingRequestWrapper캐싱 이슈 해결

[DPMBE-86] ContentCachingRequestWrapper캐싱 이슈 해결 #59

Workflow file for this run

name: Build Api Server
on:
push:
tags:
- Api-v*.*.*
jobs:
build:
runs-on: ubuntu-latest
env:
image: deploy-test
tag: latest
strategy:
#모듈들 명
matrix:
kotlin-version: [ 1.5.31 ]
java-version: [ 11 ]
outputs:
#버전
VERSION: ${{ steps.get_version.outputs.VERSION }}
steps:
- name: Check Out The Repository
uses: actions/checkout@v3
- name: Set up Kotlin
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
kotlin-version: ${{ matrix.kotlin-version }}
distribution: 'adopt'
# branch tags -> version (without v)
- name: Get the version
id: get_version
run: |
RELEASE_VERSION_WITHOUT_V="$(cut -d'v' -f2 <<< ${GITHUB_REF#refs/*/})"
echo ::set-output name=VERSION::$RELEASE_VERSION_WITHOUT_V
- name: Start containers # test 돌릴때 레디스 필요
run: docker-compose up -d
- name: Gradle Build
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew build :Whatnow-Api:build --no-daemon
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to NCP Registry
uses: docker/login-action@v2
with:
registry: ${{ secrets.NCP_CONTAINER_REGISTRY }}
username: ${{ secrets.NCP_ACCESS_KEY }}
password: ${{ secrets.NCP_SECRET_KEY }}
# docker build / push to NCP Container Registry
- name: Build and push
uses: docker/build-push-action@v3
with:
context: ./Whatnow-Api
# image push 최적화
push: true
tags: ${{secrets.NCP_CONTAINER_REGISTRY}}/whatnow-api:${{ steps.get_version.outputs.VERSION }}