Skip to content

Commit

Permalink
Update manual-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
juno-junho authored Apr 16, 2024
1 parent 6e15df7 commit 3811fc0
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Cache Gradle packages # gradle cache를 통한 workflow 속도 개선
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Permission for gradlew
run: chmod +x ./gradlew
shell: bash
Expand All @@ -43,10 +53,13 @@ jobs:
with:
arguments: bootJar

- name: Make Zip File
run: zip -qq -r ./$GITHUB_SHA.zip .
- name: Make Zip File # appspec.yml, scripts 폴더, jar 파일, bad_word_list.txt만 압축
run: zip -qq -r ./$GITHUB_SHA.zip ./appspec.yml ./scripts/ ${{ env.JAR_PATH }} ${{ env.FORBIDDEN_WORD_LIST }}
shell: bash

env:
JAR_PATH: ./build/libs/*SNAPSHOT.jar
FORBIDDEN_WORD_LIST: ./src/main/resources/secrets/bad_word_list.txt

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
Expand Down

0 comments on commit 3811fc0

Please sign in to comment.