From 24373c6de7f0285802a9afa3511607a0b5730698 Mon Sep 17 00:00:00 2001 From: Dipin <26918585+dipinknair@users.noreply.github.com> Date: Mon, 29 Jul 2024 09:14:52 -0500 Subject: [PATCH] Fix: Fix version for nightly (#253) --- .github/workflows/ci_cd_nightly.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd_nightly.yml b/.github/workflows/ci_cd_nightly.yml index 68913be..354cf49 100644 --- a/.github/workflows/ci_cd_nightly.yml +++ b/.github/workflows/ci_cd_nightly.yml @@ -11,6 +11,7 @@ env: PYMECHANICAL_START_INSTANCE: FALSE DOCKER_PACKAGE: ghcr.io/ansys/mechanical DOCKER_IMAGE_VERSION: 25.1.0 + MECH_VERSION: 251 DOCKER_MECH_CONTAINER_NAME: mechanical concurrency: @@ -64,7 +65,7 @@ jobs: echo CPU info lscpu docker pull ${{ env.MECHANICAL_IMAGE }} - BUILD_DATE=$(docker run --rm --entrypoint head ${{ env.MECHANICAL_IMAGE }} -n 1 /install/ansys_inc/v242/aisol/CommonFiles/builddate.txt) + BUILD_DATE=$(docker run --rm --entrypoint head ${{ env.MECHANICAL_IMAGE }} -n 1 /install/ansys_inc/v${{ env.MECH_VERSION }}/aisol/CommonFiles/builddate.txt) docker run --restart always --name ${{ env.DOCKER_MECH_CONTAINER_NAME }} -e ANSYSLMD_LICENSE_FILE=1055@${{ env.LICENSE_SERVER }} -p ${{ env.PYMECHANICAL_PORT }}:10000 ${{ env.MECHANICAL_IMAGE }} > log.txt & grep -q 'WB Initialize Done' <(timeout 60 tail -f log.txt) PUSHED_AT=$(docker inspect --format='{{.Created}}' ${{ env.MECHANICAL_IMAGE }})