File tree Expand file tree Collapse file tree 3 files changed +37
-5
lines changed Expand file tree Collapse file tree 3 files changed +37
-5
lines changed Original file line number Diff line number Diff line change
1
+ # SPDX-FileCopyrightText: 2021 Alliander N.V.
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ name : Docker Hub Deployment
6
+
7
+ on :
8
+ release :
9
+ types : [released]
10
+
11
+ jobs :
12
+ push_to_registry :
13
+ name : Build and publish
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Check out the repo
17
+ uses : actions/checkout@v2
18
+ - name : Login to Docker Hub
19
+ run : echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
20
+ - name : Build and publish Docker Image
21
+ run : ./gradlew clean build -Dquarkus-profile=publishNativeImage
22
+ env :
23
+ GITHUB_USERNAME : " OWNER"
24
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ dependencies {
16
16
implementation ' io.quarkus:quarkus-smallrye-openapi'
17
17
implementation ' io.quarkus:quarkus-smallrye-health'
18
18
implementation ' io.quarkus:quarkus-resteasy-jaxb'
19
+ implementation ' io.quarkus:quarkus-container-image-docker'
19
20
20
21
implementation ' org.lfenergy.compas:core-commons'
21
22
implementation project(' :service' )
Original file line number Diff line number Diff line change @@ -8,15 +8,22 @@ quarkus.http.root-path = /compas-scl-data-service/
8
8
quarkus.log.level = INFO
9
9
quarkus.log.category."org.lfenergy.compas.scl.data".level = INFO
10
10
11
- # BaseX Client Configuration
12
- basex.host = localhost
13
- basex.port = 1984
14
- basex.username = admin
15
- basex.password = admin
11
+ # BaseX configuration
12
+ basex.host = localhost
13
+ basex.port = 1984
14
+ basex.username = admin
15
+ basex.password = admin
16
16
17
17
# Dev Profile overrides.
18
18
%dev.quarkus.http.port = 9090
19
19
%dev.quarkus.http.cors = true
20
20
21
21
%dev.quarkus.log.level = DEBUG
22
22
%dev.quarkus.log.category."org.lfenergy.compas.scl.data".level = DEBUG
23
+
24
+ # Properties only used for publishing a native docker image (default to Docker Hub)
25
+ %publishNativeImage.quarkus.native.container-build =true
26
+ %publishNativeImage.quarkus.container-image.build =true
27
+ %publishNativeImage.quarkus.container-image.group =lfenergycompas
28
+ %publishNativeImage.quarkus.container-image.name =compas-scl-data-service
29
+ %publishNativeImage.quarkus.container-image.push =true
You can’t perform that action at this time.
0 commit comments