Skip to content

Commit 7a1a0ac

Browse files
committed
make image name dynamic based on ANSYS_VERSION and standalone_suffix inputs
1 parent aa96588 commit 7a1a0ac

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/examples_docker.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,13 @@ jobs:
113113
else
114114
export platform="windows"
115115
fi
116-
docker pull ghcr.io/ansys-dpf/dpf-standalone:$platform-26.1
116+
ansys_version=${{ inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}
117+
suffix=${{ inputs.standalone_suffix && format('.{0}', inputs.standalone_suffix) || '' }}
118+
version=${ansys_version:0:2}.${ansys_version:2:1}${suffix}
119+
image_name=$platform-$version
120+
docker pull ghcr.io/ansys-dpf/dpf-standalone:$image_name
117121
docker images
118-
echo "DPF_DOCKER=$platform-26.1" >> $GITHUB_ENV
122+
echo "DPF_DOCKER=$image_name" >> $GITHUB_ENV
119123
120124
# - name: "Install DPF"
121125
# id: set-server-path

0 commit comments

Comments
 (0)