-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (31 loc) · 1.26 KB
/
push-scheduled.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Push scheduled postgres
# This workflow is necessary because PostgreSQL frequently updates its base image without specifying a patch level.
# As a result, we must perform weekly checks for any new images.
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 3' # Runs at 00:00 every Wednesday
jobs:
upgrade-postgres:
strategy:
fail-fast: false
# We have to run one workflow after the other here
# because our product compose Construction Process cannot handle multiple processes.
max-parallel: 1
matrix:
include:
- postgres-major-version: 16
services: '["asset-management-postgres", "opensight-keycloak-postgres", "scan-management-postgres", "vulnerability-intelligence-postgres", "opensight-notification-service-postgres", "management-console-postgres"]'
uses: ./.github/workflows/push-compare.yml
with:
postgres-major-version: ${{ matrix.postgres-major-version }}
services: ${{ matrix.services }}
secrets: inherit
notify:
needs:
- upgrade-postgres
if: ${{ !cancelled() }}
uses: greenbone/workflows/.github/workflows/notify-mattermost-3rd-gen.yml@main
with:
status: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
secrets: inherit