File tree Expand file tree Collapse file tree 2 files changed +78
-0
lines changed
build-and-deploy-quarkus-jvm
build-and-deploy-quarkus-native Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy Quarkus JVM Image
2+ description : Build and deploy Quarkus JVM image to DockerHub
3+ inputs :
4+ platforms :
5+ description : Architectures for image, e.g. linux/amd64,linux/arm64/v8
6+ required : true
7+ docker-username :
8+ description : User name to log into registry
9+ required : true
10+ docker-password :
11+ description : Password to log into registry
12+ required : true
13+ image-name :
14+ description : Docker image name
15+ required : true
16+ image-tag :
17+ description : Docker image tag
18+ required : true
19+ outputs : {}
20+ runs :
21+ using : " composite"
22+ steps :
23+ - name : Set up Java
24+ uses : actions/setup-java@v3
25+ with :
26+ distribution : " temurin"
27+ java-version : " 21"
28+ - name : Build Quarkus JVM Image
29+ shell : sh
30+ run : |
31+ ./gradlew clean assemble \
32+ -Dquarkus.container-image.build=true \
33+ -Dquarkus.container-image.push=true \
34+ -Dquarkus.jib.platforms=${{ inputs.platforms }} \
35+ -Dquarkus.container-image.name=${{ inputs.image-name }} \
36+ -Dquarkus.container-image.tag=${{ inputs.image-tag }} \
37+ -Dquarkus.container-image.username=${{ inputs.docker-username }} \
38+ -Dquarkus.container-image.password=${{ inputs.docker-password }}
39+
Original file line number Diff line number Diff line change 1+ name : Build and Deploy Quarkus Native Image
2+ description : Build and deploy Quarkus native image to DockerHub
3+ inputs :
4+ platforms :
5+ description : Architectures for image, e.g. linux/amd64,linux/arm64/v8
6+ required : true
7+ docker-username :
8+ description : User name to log into registry
9+ required : true
10+ docker-password :
11+ description : Password to log into registry
12+ required : true
13+ image-name :
14+ description : Docker image name
15+ required : true
16+ image-tag :
17+ description : Docker image tag
18+ required : true
19+ outputs : {}
20+ runs :
21+ using : " composite"
22+ steps :
23+ - name : Set up graalvm
24+ uses : actions/setup-java@v4
25+ with :
26+ distribution : " graalvm"
27+ java-version : " 21"
28+ - name : Build Quarkus Native Image
29+ shell : sh
30+ run : |
31+ ./gradlew clean assemble \
32+ -Dquarkus.package.type=native \
33+ -Dquarkus.container-image.push=true \
34+ -Dquarkus.jib.platforms=${{ inputs.platforms }} \
35+ -Dquarkus.container-image.name=${{ inputs.image-name }} \
36+ -Dquarkus.container-image.tag=${{ inputs.image-tag }} \
37+ -Dquarkus.native.additional-build-args="--initialize-at-run-time=org.apache.kafka.common.security.authenticator.SaslClientAuthenticator\,org.apache.kafka.common.security.oauthbearer.internals.expiring.ExpiringCredentialRefreshingLogin" \
38+ -Dquarkus.container-image.username=${{ inputs.docker-username }} \
39+ -Dquarkus.container-image.password=${{ inputs.docker-password }}
You can’t perform that action at this time.
0 commit comments