Skip to content

Updated CircleCI config.yml to fix bug #10

Updated CircleCI config.yml to fix bug

Updated CircleCI config.yml to fix bug #10

Workflow file for this run

#name: Build
#on:
# push:
# branches:
# - main
# - backend-deploy
# pull_request:
# types: [opened, synchronize, reopened]
#jobs:
# build:
# name: Build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Set up JDK 21
# uses: actions/setup-java@v4
# with:
# distribution: temurin
# java-version: 21
# - name: Cache maven packages
# uses: actions/cache@v4
# with:
# path: ~/.m2
# key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
# restore-keys: ${{ runner.os }}-m2
# - name: Build
# run: mvn clean spring-boot:build-image -Dmaven.test.skip=true
# - name: get-pom-version
# run: |
# echo "POM_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
# - name: Login docker hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Push to Docker Hub
# run: |
# docker push phammings/airbnb-clone:${{ env.POM_VERSION }}
# - name: Notify Coolify
# run: |
# curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'