Merge pull request #41 from SLAT-TO/feature/39-prod-infra #45
Workflow file for this run
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: | |
| push: | |
| branches: | |
| - develop | |
| - main | |
| jobs: | |
| build: | |
| name: Build and Docker Image Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Java 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "21" | |
| cache: gradle | |
| - name: Make Gradle Wrapper executable | |
| run: chmod +x ./gradlew | |
| - name: Build Spring Boot jar | |
| run: ./gradlew clean bootJar -x test --no-daemon | |
| - name: Build Docker image | |
| run: docker build -t slatto-api:ci . |