From 86acc35b5dd87954c74145f72f8a9764769b7b7f Mon Sep 17 00:00:00 2001 From: dkunhamb Date: Wed, 24 Jul 2024 14:42:35 -0500 Subject: [PATCH 1/2] fix version infor --- .github/workflows/ci_cd_nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd_nightly.yml b/.github/workflows/ci_cd_nightly.yml index 68913be..7fa03bb 100644 --- a/.github/workflows/ci_cd_nightly.yml +++ b/.github/workflows/ci_cd_nightly.yml @@ -64,7 +64,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/v251/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 }}) From eaa4ded0594bb0fc302ef29884fc9a298035db8f Mon Sep 17 00:00:00 2001 From: dkunhamb Date: Wed, 24 Jul 2024 16:07:44 -0500 Subject: [PATCH 2/2] use version --- .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 7fa03bb..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/v251/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 }})