Skip to content

Commit

Permalink
[FIX] ci-cd.yml 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
unanchoi committed Nov 8, 2023
1 parent f7f7c35 commit e7c3058
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,12 @@ jobs:
distribution: 'corretto'
cache: gradle

- name: create application-aws file
- name: set environment variables
working-directory: ./
run: |
pwd
mkdir src/main/resources
touch src/main/resources/application-aws.yml
echo AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }} >> src/main/resources/application-aws.yml
echo AWS_REGION=${{ secrets.AWS_REGION }} >> src/main/resources/application-aws.yml
echo AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }} >> src/main/resources/application-aws.yml
echo S3_BUCKET=${{ secrets.S3_BUCKET }} >> src/main/resources/application-aws.yml
cat src/main/resources/application-aws.yml
- name: create .env file
working-directory: ./
run: |
pwd
touch .env
echo "${{ secrets.ENV }}" >> .env
cat .env
- name: Create application.yml
run: |
pwd
touch src/main/resources/application.yml
echo "${{ secrets.APPLICATION_YML }}" >> src/main/resources/application.yml
cat src/main/resources/application.yml
touch src/main/resources/application-secret.properties
echo ${{ secrets.ENV }} >> src/main/resources/application-secret.properties
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
Expand Down

0 comments on commit e7c3058

Please sign in to comment.