File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 7171 echo "MAVEN_OPTS=-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3" >> $GITHUB_ENV
7272 fi
7373
74+ - name : Set Java versions dynamically in .env
75+ run : |
76+ sed -i "s/^ATLAS_BASE_JAVA_VERSION=.*/ATLAS_BASE_JAVA_VERSION=${{ matrix.java }}/" dev-support/atlas-docker/.env
77+ sed -i "s/^ATLAS_BUILD_JAVA_VERSION=.*/ATLAS_BUILD_JAVA_VERSION=${{ matrix.java }}/" dev-support/atlas-docker/.env
78+ sed -i "s/^ATLAS_SERVER_JAVA_VERSION=.*/ATLAS_SERVER_JAVA_VERSION=${{ matrix.java }}/" dev-support/atlas-docker/.env
79+
80+ - name : Print updated .env
81+ run : cat dev-support/atlas-docker/.env
82+
7483 - name : Clean up Docker space
7584 run : docker system prune --all --force --volumes
7685
8392 SKIPTESTS=false docker compose -f docker-compose.atlas-base.yml -f docker-compose.atlas-build.yml up
8493 ATLAS_BUILD_CONTAINER=$(docker ps -a -q --filter "name=atlas-build")
8594 EXIT_CODE=$(docker inspect --format '{{.State.ExitCode}}' "$ATLAS_BUILD_CONTAINER")
86-
95+
8796 # If the exit code is non-zero, fail the workflow
8897 if [ "$EXIT_CODE" -ne 0 ]; then
8998 echo "atlas-build container failed with exit code $EXIT_CODE."
You can’t perform that action at this time.
0 commit comments