🔨 deploy dev 스크립트 수정 #6
Workflow file for this run
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
# API - Dev Server에 배포 | ||
name: API - Deploy Development Environment | ||
on: | ||
push: | ||
branches: | ||
- release/Api-v* | ||
- hotfix/Api-v* | ||
env: | ||
AWS_REGION: ap-northeast-2 | ||
DEV_RUN: false | ||
jobs: | ||
dev-api-server-deploy: | ||
if: ${{ env.DEV_RUN }} | ||
Check failure on line 16 in .github/workflows/deploy-dev-api.yml GitHub Actions / API - Deploy Development EnvironmentInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.MY_TOKEN }} | ||
submodules: true | ||
# JDK 환경 셋팅 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
cache: gradle | ||
# Gradle Permission | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
# Build | ||
- name: Gradle build | ||
run: | | ||
./gradlew globalCopyConfig | ||
./gradlew adevspoon-api:build -x test | ||
# AWS Config | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-region: ${{ env.AWS_REGION }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
# Deploy to Lambda | ||
- name: Deploy to lambda | ||
run: | | ||
# aws lambda update-function-code --function-name adevspoon-api --zip-file fileb://adevspoon-api/build/libs/adevspoon-api-*.jar |