Skip to content

Commit 5809821

Browse files
committed
Restore optimizedDockerfile
1 parent e7c76eb commit 5809821

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/actions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ jobs:
4242
- name: Build and analyze
4343
env:
4444
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
45-
run: gradle build dockerfile jacocoAggregatedReport sonar --info
45+
run: gradle build optimizedDockerfile jacocoAggregatedReport sonar --info
4646
- name: Compute version
4747
run: |
4848
gradle version
4949
echo "BUILD_VERSION=$(gradle version | grep Version | awk '{ print $2 }')" >> $GITHUB_ENV
5050
- name: Login to Docker Hub
5151
run: docker login -u $DOCKER_USER -p ${{ secrets.DOCKER_PASSWORD }}
5252
- name: Build and tag the Docker image
53-
working-directory: ./mnt/build/docker/main
53+
working-directory: ./mnt/build/docker/optimized
5454
run: docker build -t $DOCKER_USER/$DOCKER_IMAGE:${{ env.BUILD_VERSION }} -t $DOCKER_USER/$DOCKER_IMAGE:latest .
5555
- name: Push the Docker image
5656
run: docker push $DOCKER_USER/$DOCKER_IMAGE --all-tags

mnt/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ micronaut {
4343
optimizeClassLoading = true
4444
deduceEnvironment = true
4545
optimizeNetty = true
46-
replaceLogbackXml = true
46+
replaceLogbackXml = false
4747
}
4848
}
4949

50-
tasks.named("dockerfile") {
50+
tasks.named("optimizedDockerfile") {
5151
baseImage = "eclipse-temurin:24-jre-alpine-3.22@sha256:9a4bd30f02e82e4987d56cc8ac5d7e9d13a2451c228c1f5d6978a317d18d1cd1"
5252
}

0 commit comments

Comments
 (0)