Fix: 폰트 색상 변수 주입 #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Make .env file | |
| run: | | |
| echo "${{ secrets.ENV_FILE }}" > .env | |
| shell: bash | |
| - name: Grant execute permission to gradlew | |
| run: chmod +x ./gradlew | |
| - name: Run Build and Test | |
| run: ./gradlew clean build --no-daemon | |
| - name: Login to DockerHub | |
| run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | |
| - name: Build and push Docker image | |
| run: | | |
| docker build -t ${{ secrets.DOCKER_REPO }}:latest . | |
| docker push ${{ secrets.DOCKER_REPO }}:latest |