Skip to content

Commit 076f7cb

Browse files
committed
fix(ci): docker
1 parent d74c66d commit 076f7cb

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/ci_cd_pr.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ env:
1616
PYFLUENT_WATCHDOG_DEBUG: "OFF"
1717
PYFLUENT_HIDE_LOG_SECRETS: 1
1818

19-
FLUENT_DOCKER_IMAGE: "pyfluent:v25.1.0"
19+
DOCKER_CONTAINER_REGISTRY: 'ghcr.io'
20+
DOCKER_IMAGE_FLUENT: "ansys/pyfluent"
21+
DOCKER_IMAGE_TAG: "v25.1.0"
2022

2123
concurrency:
2224
group: ${{ github.workflow }}-${{ github.ref }}
@@ -118,21 +120,23 @@ jobs:
118120
needs: doc-style
119121
runs-on: ubuntu-latest
120122
env:
121-
DOC_DEPLOYMENT_IMAGE_TAG: v25.2.0
122123
PYFLUENT_CONTAINER_MOUNT_SOURCE: "/home/ansys/Downloads/ansys_fluent_core_examples"
123124
steps:
124125

125126
- name: "Login to GitHub Container Registry"
126127
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
127128
with:
128-
registry: ghcr.io
129-
username: ansys-bot
129+
registry: ${{ env.DOCKER_CONTAINER_REGISTRY }}
130+
username: ${{ github.actor }}
130131
password: ${{ secrets.GITHUB_TOKEN }}
131132

132-
- name: "Pull ${{ env.FLUENT_DOCKER_IMAGE }}"
133-
if: steps.cache-api-code.outputs.cache-hit != 'true'
133+
- name: "Pull ${{ env.DOCKER_IMAGE_FLUENT }}:${{ env.DOCKER_IMAGE_TAG }}"
134134
run: |
135-
docker pull ${{ env.FLUENT_DOCKER_IMAGE }}
135+
docker pull ${{ env.DOCKER_CONTAINER_REGISTRY }}/${{ env.DOCKER_IMAGE_FLUENT }}:${{ env.DOCKER_IMAGE_TAG }}
136+
137+
- name: "Run container"
138+
run: |
139+
docker run --detach --name fluent -e ANSYSLMD_LICENSE_FILE=${{ env.ANSYSLMD_LICENSE_FILE }}
136140
137141
- name: "Build documentation"
138142
uses: ansys/actions/doc-build@v10

0 commit comments

Comments
 (0)