Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
interval: "daily"
labels:
- "maintenance"
- "dependencies"
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/nightly_docker_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Nightly Server test - Latest build
on:
workflow_dispatch:
inputs:
promote:
description: 'Promote the latest build to stable'
required: false
default: false
type: boolean
schedule: # UTC at 0300
- cron: "0 3 * * *"
# Trigger workflow when file is modified
Expand Down Expand Up @@ -200,3 +206,53 @@ jobs:
}
]
}

promote-windows:
needs: [windows-tests, linux-tests]
runs-on: [self-hosted, Windows, pygeometry]
name: Promote Windows container
if: ${{ github.event.inputs.promote == 'true' || github.event_name == 'schedule' }}
env:
WINDOWS_UNSTABLE: ghcr.io/ansys/geometry:windows-latest-unstable
WINDOWS_STABLE_GHCR: ghcr.io/ansys/geometry:windows-latest
steps:
- name: Login in Github Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
password: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}

- name: Pull Windows latest unstable container
run: docker pull ${{ env.WINDOWS_UNSTABLE }}

- name: Tag container as latest (stable) for Github Container registry
run: docker tag ${{ env.WINDOWS_UNSTABLE }} ${{ env.WINDOWS_STABLE_GHCR }}

- name: Publish latest stable container in ghcr.io
run: docker push ${{ env.WINDOWS_STABLE_GHCR }}

promote-linux:
needs: [windows-tests, linux-tests]
runs-on: ubuntu-latest
name: Promote Linux container
if: ${{ github.event.inputs.promote == 'true' || github.event_name == 'schedule' }}
env:
LINUX_UNSTABLE: ghcr.io/ansys/geometry:linux-latest-unstable
LINUX_STABLE_GHCR: ghcr.io/ansys/geometry:linux-latest
steps:
- name: Login in Github Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
password: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}

- name: Pull Linux latest unstable container
run: docker pull ${{ env.LINUX_UNSTABLE }}

- name: Tag container as latest (stable) for Github Container registry
run: docker tag ${{ env.LINUX_UNSTABLE }} ${{ env.LINUX_STABLE_GHCR }}

- name: Publish latest stable container in ghcr.io
run: docker push ${{ env.LINUX_STABLE_GHCR }}
1 change: 1 addition & 0 deletions doc/changelog.d/1463.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
unstable image promotion and dependabot daily updates
Loading