Skip to content

Commit

Permalink
chore: Update auto-deploy.yml
Browse files Browse the repository at this point in the history
Add configuration for test job with Redis service and script to copy application.yml files
  • Loading branch information
yeonise authored Mar 20, 2024
1 parent 1218ae2 commit 903c86d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
runs-on: ubuntu-latest
environment: production

services:
redis:
image: redis:latest
ports:
- 6380:6379

steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -30,6 +36,16 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Copy application.yml
run: |
mkdir ./src/main/resources
touch ./src/main/resources/application.yml
echo "${{ secrets.APPLICATION }}" > ./src/main/resources/application.yml
touch ./src/main/resources/application-test.yml
echo "${{ secrets.APPLICATION_TEST }}" > ./src/main/resources/application-test.yml
touch ./src/main/resources/application-release.yml
echo "${{ secrets.APPLICATION_RELEASE }}" > ./src/main/resources/application-release.yml
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: ${{ env.working-directory }}
Expand Down

0 comments on commit 903c86d

Please sign in to comment.