ble imageurl 추가 및 place 이미지 추가 기능 #373
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: Build check | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| push: | |
| branches: | |
| - develop | |
| jobs: | |
| build: | |
| name: Build check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'corretto' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build with Gradle | |
| env: | |
| SPRING_PROFILES_ACTIVE: test | |
| run: ./gradlew clean build --stacktrace | |
| shell: bash | |
| - name: Docker build & push to prod | |
| if: contains(github.ref, 'develop') || contains(github.ref, 'main') | |
| run: | | |
| docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }} | |
| docker build -t kodaero -f ./Dockerfile . | |
| docker tag kodaero:latest ${{ secrets.DOCKER_USER }}/kodaero:latest | |
| docker push ${{ secrets.DOCKER_USER }}/kodaero:latest |