Skip to content

Commit

Permalink
Add Github Actions builds to create Docker images.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonydahanne authored and odrotbohm committed Jun 25, 2024
1 parent f3ecab4 commit 5592bee
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,47 @@ jobs:
run: |
cd server
./mvnw -B verify --file pom.xml
buildpacks:
name: Build Image with Buildpacks
runs-on: ubuntu-latest

steps:
- name: Check out sources
uses: actions/checkout@v4

- name: Set up JDK 22
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 22
cache: 'maven'

- name: Build with Maven
run: |
cd server
./mvnw -Dspring-boot.build-image.publish \
-Dspring-boot.build-image.imageName=ttl.sh/restbucks-${GITHUB_WORKFLOW_SHA}:1d \
-Pbuildpacks
buildpacks-native:
name: Build Native Image with Buildpacks
runs-on: ubuntu-latest

steps:
- name: Check out sources
uses: actions/checkout@v4

- name: Set up JDK 22
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 22
cache: 'maven'

- name: Build with Maven
run: |
cd server
./mvnw -Dspring-boot.build-image.publish=true \
-Dspring-boot.build-image.imageName=ttl.sh/restbucks-native-${GITHUB_WORKFLOW_SHA}:1d
-Pbuildpacks-native

0 comments on commit 5592bee

Please sign in to comment.