Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix: CD workflow에서 환경변수가 제대로 설정되지 않던 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
goldentrash committed Jan 27, 2024
1 parent 96c3aa6 commit 1ecbdc8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/Continuous Delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ jobs:
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Set env for Gradle build
run: |
echo DB_URL=${{ secrets.DB_URL }} >> $GITHUB_ENV
echo DB_USER=${{ secrets.DB_USR }} >> $GITHUB_ENV
echo DB_PASSWORD=${{ secrets.DB_PWD }} >> $GITHUB_ENV
- name: Execute Gradle build
run: ./gradlew build
env:
DB_URL: ${{ secrets.DB_URL }}
DB_USER: ${{ secrets.DB_USR }}
DB_PASSWORD: ${{ secrets.DB_PWD }}

- name: Login to docker-hub
uses: docker/login-action@v3
Expand Down

0 comments on commit 1ecbdc8

Please sign in to comment.