Skip to content

Commit

Permalink
Merge pull request #407 from twenty-three-23/dev
Browse files Browse the repository at this point in the history
main도 반영
  • Loading branch information
ch8930 authored Nov 20, 2024
2 parents 494511f + 53e1e64 commit 601b036
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/cd_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Set up GPT_PROMPT_SYSTEM environment variable decode
run: echo "GPT_PROMPT_SYSTEM=${{ secrets.GPT_PROMPT_SYSTEM }}" >> $GITHUB_ENV
- name: Decode GPT Prompt and Set Environment Variable
run: |
DECODED_PROMPT=$(echo "${{ secrets.GPT_PROMPT_SYSTEM }}" | base64 --decode)
echo "GPT_PROMPT_SYSTEM<<EOF" >> $GITHUB_ENV
echo "$DECODED_PROMPT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Set yaml file
uses: microsoft/variable-substitution@v1
Expand All @@ -42,7 +46,7 @@ jobs:
logging.level.com.twentythree.peech: off
logging.config: classpath:spring-logback.xml
gpt.api.key: ${{secrets.GPT_API_KEY_PROD}}
gpt.prompt.system: ${{env.GPT_PROMPT_SYSTEM}}
gpt.prompt.system: DECODED_PROMPT=$(echo "${{ secrets.GPT_PROMPT_SYSTEM }}" | base64 --decode)
jwt.secret.key: ${{secrets.JWT_SECRET_KEY_PROD}}
jwt.access.key: ${{secrets.JWT_ACCESS_KEY}}
jwt.refresh.key: ${{secrets.JWT_REFRESH_KEY}}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Set up GPT_PROMPT_SYSTEM environment variable decode
run: echo "GPT_PROMPT_SYSTEM=${{ secrets.GPT_PROMPT_SYSTEM }}" >> $GITHUB_ENV
- name: Decode GPT Prompt and Set Environment Variable
run: |
DECODED_PROMPT=$(echo "${{ secrets.GPT_PROMPT_SYSTEM }}" | base64 --decode)
echo "GPT_PROMPT_SYSTEM<<EOF" >> $GITHUB_ENV
echo "$DECODED_PROMPT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Set yaml file
uses: microsoft/variable-substitution@v1
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/cicd_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Set up GPT_PROMPT_SYSTEM environment variable decode
run: echo "GPT_PROMPT_SYSTEM=${{ secrets.GPT_PROMPT_SYSTEM }}" >> $GITHUB_ENV
- name: Decode GPT Prompt and Set Environment Variable
run: |
DECODED_PROMPT=$(echo "${{ secrets.GPT_PROMPT_SYSTEM }}" | base64 --decode)
echo "GPT_PROMPT_SYSTEM<<EOF" >> $GITHUB_ENV
echo "$DECODED_PROMPT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Set yaml file
uses: microsoft/variable-substitution@v1
Expand Down

0 comments on commit 601b036

Please sign in to comment.