Skip to content

Commit c68218c

Browse files
ci: unstable image promotion and dependabot daily updates (#1463)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
1 parent 9d5d90f commit c68218c

File tree

3 files changed

+58
-1
lines changed

3 files changed

+58
-1
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ updates:
33
- package-ecosystem: "pip"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "daily"
77
labels:
88
- "maintenance"
99
- "dependencies"

.github/workflows/nightly_docker_test.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Nightly Server test - Latest build
22
on:
33
workflow_dispatch:
4+
inputs:
5+
promote:
6+
description: 'Promote the latest build to stable (if tests pass)'
7+
required: false
8+
default: false
9+
type: boolean
410
schedule: # UTC at 0300
511
- cron: "0 3 * * *"
612
# Trigger workflow when file is modified
@@ -200,3 +206,53 @@ jobs:
200206
}
201207
]
202208
}
209+
210+
promote-windows:
211+
needs: [windows-tests, linux-tests]
212+
runs-on: [self-hosted, Windows, pygeometry]
213+
name: Promote Windows container
214+
if: ${{ github.event.inputs.promote == 'true' || github.event_name == 'schedule' }}
215+
env:
216+
WINDOWS_UNSTABLE: ghcr.io/ansys/geometry:windows-latest-unstable
217+
WINDOWS_STABLE_GHCR: ghcr.io/ansys/geometry:windows-latest
218+
steps:
219+
- name: Login in Github Container registry
220+
uses: docker/login-action@v3
221+
with:
222+
registry: ghcr.io
223+
username: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
224+
password: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
225+
226+
- name: Pull Windows latest unstable container
227+
run: docker pull ${{ env.WINDOWS_UNSTABLE }}
228+
229+
- name: Tag container as latest (stable) for Github Container registry
230+
run: docker tag ${{ env.WINDOWS_UNSTABLE }} ${{ env.WINDOWS_STABLE_GHCR }}
231+
232+
- name: Publish latest stable container in ghcr.io
233+
run: docker push ${{ env.WINDOWS_STABLE_GHCR }}
234+
235+
promote-linux:
236+
needs: [windows-tests, linux-tests]
237+
runs-on: ubuntu-latest
238+
name: Promote Linux container
239+
if: ${{ github.event.inputs.promote == 'true' || github.event_name == 'schedule' }}
240+
env:
241+
LINUX_UNSTABLE: ghcr.io/ansys/geometry:linux-latest-unstable
242+
LINUX_STABLE_GHCR: ghcr.io/ansys/geometry:linux-latest
243+
steps:
244+
- name: Login in Github Container registry
245+
uses: docker/login-action@v3
246+
with:
247+
registry: ghcr.io
248+
username: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
249+
password: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
250+
251+
- name: Pull Linux latest unstable container
252+
run: docker pull ${{ env.LINUX_UNSTABLE }}
253+
254+
- name: Tag container as latest (stable) for Github Container registry
255+
run: docker tag ${{ env.LINUX_UNSTABLE }} ${{ env.LINUX_STABLE_GHCR }}
256+
257+
- name: Publish latest stable container in ghcr.io
258+
run: docker push ${{ env.LINUX_STABLE_GHCR }}

doc/changelog.d/1463.maintenance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
unstable image promotion and dependabot daily updates

0 commit comments

Comments
 (0)