fix: cors 관련 Security와 WebMVC 설정 추가 #32
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: cd-dev | |
on: | |
push: | |
branches: [ "dev" ] | |
jobs: | |
deploy-to-ec2: | |
environment: dev | |
runs-on: ubuntu-latest | |
env: | |
NEXON_BASE_URL: ${{ secrets.NEXON_BASE_URL }} | |
NEXON_HEADER_KEY: ${{ secrets.NEXON_HEADER_KEY }} | |
MAPLESTORYM_HEADER_VALUE: ${{ secrets.MAPLESTORYM_HEADER_VALUE }} | |
MAPLESTORYM_OCID_API_URI: ${{ secrets.MAPLESTORYM_OCID_API_URI }} | |
MAPLESTORYM_BASIC_API_URI: ${{ secrets.MAPLESTORYM_BASIC_API_URI }} | |
MAPLESTORYM_ITEM_API_URI: ${{ secrets.MAPLESTORYM_ITEM_API_URI }} | |
MAPLESTORYM_STAT_API_URI: ${{ secrets.MAPLESTORYM_STAT_API_URI }} | |
MAPLESTORYM_GUILD_API_URI: ${{ secrets.MAPLESTORYM_GUILD_API_URI }} | |
KARTRIDER_HEADER_VALUE: ${{ secrets.KARTRIDER_HEADER_VALUE }} | |
KARTRIDER_OUID_API_URI: ${{ secrets.KARTRIDER_OUID_API_URI }} | |
KARTRIDER_BASIC_API_URI: ${{ secrets.KARTRIDER_BASIC_API_URI }} | |
KARTRIDER_TITLE_API_URI: ${{ secrets.KARTRIDER_TITLE_API_URI }} | |
steps: | |
- name: Github Repository Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build | |
- name: Sending build file to NAS | |
uses: appleboy/scp-action@master | |
with: | |
host: ${{ secrets.NAS_HOST }} | |
port: ${{ secrets.NAS_PORT }} | |
username: ${{ secrets.NAS_USERNAME }} | |
password: ${{ secrets.NAS_PASSWORD }} | |
source: "build/libs/*.jar" | |
target: "/root/omg/" | |