Skip to content

Commit 21b1061

Browse files
committed
ATLAS-5002 : Ci build changes.
1 parent b1e9a14 commit 21b1061

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ jobs:
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

@@ -83,7 +92,7 @@ jobs:
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."

0 commit comments

Comments
 (0)