@@ -23,15 +23,19 @@ concurrency:
2323permissions :
2424 packages : write
2525
26+ env :
27+ WINDOWS_UNSTABLE : ghcr.io/ansys/geometry:windows-latest-unstable
28+ WINDOWS_STABLE_GHCR : ghcr.io/ansys/geometry:windows-latest
29+ WINDOWS_STABLE_FUJI : azwepsifujiaksacr.azurecr.io/ansys/discovery/geometry:windows-latest
30+ LINUX_UNSTABLE : ghcr.io/ansys/geometry:linux-latest-unstable
31+ LINUX_STABLE_GHCR : ghcr.io/ansys/geometry:linux-latest
32+ LINUX_STABLE_FUJI : azwepsifujiaksacr.azurecr.io/ansys/discovery/geometry:linux-latest
33+
2634jobs :
2735 windows :
2836 name : Publish Windows latest image
2937 runs-on : windows-latest
3038 if : inputs.images == 'all' || inputs.images == 'windows-latest'
31- env :
32- WINDOWS_UNSTABLE : ghcr.io/ansys/geometry:windows-latest-unstable
33- WINDOWS_STABLE_GHCR : ghcr.io/ansys/geometry:windows-latest
34- WINDOWS_STABLE_FUJI : azwepsifujiaksacr.azurecr.io/ansys/discovery/geometry:windows-latest
3539 steps :
3640 - name : Login in Github Container registry
3741 uses : docker/login-action@v2
@@ -65,14 +69,38 @@ jobs:
6569 if : ${{ inputs.ansyslab }}
6670 run : docker push ${{ env.WINDOWS_STABLE_FUJI }}
6771
72+ windows-ansyslab :
73+ if : inputs.ansyslab
74+ needs : [windows]
75+ runs-on : [self-hosted, Windows, pygeometry]
76+ steps :
77+ - name : Login in Github Container registry
78+ uses : docker/login-action@v2
79+ with :
80+ registry : ghcr.io
81+ username : ${{ github.actor }}
82+ password : ${{ secrets.GITHUB_TOKEN }}
83+
84+ - name : Pull Windows latest unstable container
85+ run : docker pull ${{ env.WINDOWS_STABLE_GHCR }}
86+
87+ - name : Login in AnsysLab registry
88+ uses : docker/login-action@v2
89+ with :
90+ registry : azwepsifujiaksacr.azurecr.io
91+ username : ${{ secrets.FUJI_USER }}
92+ password : ${{ secrets.FUJI_TOKEN }}
93+
94+ - name : Tag container as latest (stable) for AnsysLab registry
95+ run : docker tag ${{ env.WINDOWS_STABLE_GHCR }} ${{ env.WINDOWS_STABLE_FUJI }}
96+
97+ - name : Publish latest stable container in AnsysLab registry
98+ run : docker push ${{ env.WINDOWS_STABLE_FUJI }}
99+
68100 linux :
69101 name : Publish Linux latest image
70102 runs-on : ubuntu-latest
71103 if : inputs.images == 'all' || inputs.images == 'linux-latest'
72- env :
73- LINUX_UNSTABLE : ghcr.io/ansys/geometry:linux-latest-unstable
74- LINUX_STABLE_GHCR : ghcr.io/ansys/geometry:linux-latest
75- LINUX_STABLE_FUJI : azwepsifujiaksacr.azurecr.io/ansys/discovery/geometry:linux-latest
76104 steps :
77105 - name : Login in Github Container registry
78106 uses : docker/login-action@v2
@@ -105,3 +133,31 @@ jobs:
105133 - name : Publish latest stable container in AnsysLab registry
106134 if : ${{ inputs.ansyslab }}
107135 run : docker push ${{ env.LINUX_STABLE_FUJI }}
136+
137+ linux-ansyslab :
138+ if : inputs.ansyslab
139+ needs : [linux]
140+ runs-on : [self-hosted, Linux]
141+ steps :
142+ - name : Login in Github Container registry
143+ uses : docker/login-action@v2
144+ with :
145+ registry : ghcr.io
146+ username : ${{ github.actor }}
147+ password : ${{ secrets.GITHUB_TOKEN }}
148+
149+ - name : Pull Linux latest stable container
150+ run : docker pull ${{ env.LINUX_STABLE_GHCR }}
151+
152+ - name : Login in AnsysLab registry
153+ uses : docker/login-action@v2
154+ with :
155+ registry : azwepsifujiaksacr.azurecr.io
156+ username : ${{ secrets.FUJI_USER }}
157+ password : ${{ secrets.FUJI_TOKEN }}
158+
159+ - name : Tag container as latest (stable) for AnsysLab registry
160+ run : docker tag ${{ env.LINUX_STABLE_GHCR }} ${{ env.LINUX_STABLE_FUJI }}
161+
162+ - name : Publish latest stable container in AnsysLab registry
163+ run : docker push ${{ env.LINUX_STABLE_FUJI }}
0 commit comments