@@ -23,15 +23,19 @@ concurrency:
23
23
permissions :
24
24
packages : write
25
25
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
+
26
34
jobs :
27
35
windows :
28
36
name : Publish Windows latest image
29
37
runs-on : windows-latest
30
38
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
35
39
steps :
36
40
- name : Login in Github Container registry
37
41
uses : docker/login-action@v2
@@ -65,14 +69,38 @@ jobs:
65
69
if : ${{ inputs.ansyslab }}
66
70
run : docker push ${{ env.WINDOWS_STABLE_FUJI }}
67
71
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
+
68
100
linux :
69
101
name : Publish Linux latest image
70
102
runs-on : ubuntu-latest
71
103
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
76
104
steps :
77
105
- name : Login in Github Container registry
78
106
uses : docker/login-action@v2
@@ -105,3 +133,31 @@ jobs:
105
133
- name : Publish latest stable container in AnsysLab registry
106
134
if : ${{ inputs.ansyslab }}
107
135
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