Skip to content

Commit a214b0b

Browse files
committed
ci(ct): enable verbose Docker output for build and deployment steps
Added `-Ddocker.verbose` to Maven commands in container workflows to improve clarity and troubleshooting during build and deploy processes. Without verbose logging, trying to find why a build fails in CI is much harder.
1 parent 64d37fe commit a214b0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/container_app_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ jobs:
6161
- name: Build app and configbaker container image with local architecture and submodules (profile will skip tests)
6262
run: >
6363
mvn -B -f modules/dataverse-parent
64-
-P ct -pl edu.harvard.iq:dataverse -am
64+
-P ct -Ddocker.verbose -pl edu.harvard.iq:dataverse -am
6565
install
6666
- name: Deploy multi-arch application and configbaker container image
6767
run: >
6868
mvn -Pct deploy
69-
-Dapp.image.tag=${{ env.IMAGE_TAG }}
69+
-Dapp.image.tag=${{ env.IMAGE_TAG }} -Ddocker.verbose
7070
-Ddocker.registry=ghcr.io -Ddocker.platforms=${{ env.PLATFORMS }}
7171
7272
- uses: marocchino/sticky-pull-request-comment@v2

.github/workflows/container_app_push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ jobs:
130130
- name: Build app and configbaker container image with local architecture and submodules (profile will skip tests)
131131
run: >
132132
mvn -B -f modules/dataverse-parent
133-
-P ct -pl edu.harvard.iq:dataverse -am
133+
-P ct -pl edu.harvard.iq:dataverse -am -Ddocker.verbose
134134
$( [[ -n "${{ inputs.base-image-ref }}" ]] && echo "-Dbase.image=${{ inputs.base-image-ref }}" )
135135
install
136136
- name: Deploy multi-arch application and configbaker container image
137137
run: >
138138
mvn
139139
-Dapp.image.tag=${{ env.IMAGE_TAG }} ${{ env.ADDITIONAL_TAGS }}
140140
$( [[ -n "${{ inputs.base-image-ref }}" ]] && echo "-Dbase.image=${{ inputs.base-image-ref }}" )
141-
${{ env.REGISTRY }} -Ddocker.platforms=${{ env.PLATFORMS }}
141+
${{ env.REGISTRY }} -Ddocker.platforms=${{ env.PLATFORMS }} -Ddocker.verbose
142142
-P ct deploy
143143
144144
- uses: marocchino/sticky-pull-request-comment@v2

0 commit comments

Comments
 (0)