Skip to content

Commit

Permalink
Back to previous build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
phammings committed Aug 14, 2024
1 parent 5f5b9f0 commit 53d68e8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 88 deletions.
47 changes: 0 additions & 47 deletions .circleci/config.yml

This file was deleted.

82 changes: 41 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
#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 }}'
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 }}'

0 comments on commit 53d68e8

Please sign in to comment.