-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Docker images for Polaris using Quarkus
- Loading branch information
Showing
8 changed files
with
63 additions
and
95 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,12 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
|
||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
with: | ||
|
@@ -83,14 +89,22 @@ jobs: | |
if: steps.list-changed.outputs.changed == 'true' | ||
uses: medyagh/[email protected] | ||
|
||
- name: Docker build | ||
- name: Print Docker info | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
docker -v | ||
minikube docker-env | ||
- name: Image build | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
eval $(minikube docker-env) | ||
docker build -f ./Dockerfile \ | ||
--build-arg ECLIPSELINK=true \ | ||
--build-arg ECLIPSELINK_DEPS=com.h2database:h2:2.3.232 \ | ||
-t polaris:latest . | ||
export BUILD_TAG=helm-ci-$(date +%s) | ||
echo BUILD_TAG=${BUILD_TAG} >> ${GITHUB_ENV} | ||
eval $(minikube -p minikube docker-env) | ||
./gradlew :polaris-quarkus-server:build -x check \ | ||
-Dquarkus.container-image.build=true \ | ||
-Dquarkus.container-image.name=polaris-testing \ | ||
-Dquarkus.container-image.tag=${BUILD_TAG} | ||
- name: Install fixtures | ||
if: steps.list-changed.outputs.changed == 'true' | ||
|
@@ -103,5 +117,5 @@ jobs: | |
run: | | ||
ct install --target-branch ${{ github.event.repository.default_branch }} \ | ||
--namespace polaris-ns \ | ||
--helm-extra-set-args "--set=image.repository=polaris --set=image.tag=latest" \ | ||
--helm-extra-set-args "--set=image.repository=apache/polaris-testing --set=image.tag=${BUILD_TAG}" \ | ||
--debug --charts ./helm/polaris |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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