-
Notifications
You must be signed in to change notification settings - Fork 19
87 lines (70 loc) · 2.66 KB
/
upgrade-checks.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Upgrade variables to latest versions
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1"
push:
paths:
- "scripts/**"
- ".github/workflows/upgrade-checks.yml"
jobs:
kubernetes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: "3.10"
check-latest: true
- name: Install dependencies
run: pip install -r scripts/requirements.txt
- id: eks
name: Get latest Kubernetes version
run: python scripts/get_latest_eks_version.py
- name: Set EKS Version
run: python scripts/set_variable_default.py eks_cluster_version ${{ steps.eks.outputs.LATEST_VERSION }}
- name: Set EKS Version
run: python scripts/set_variable_default.py cluster_version ${{ steps.eks.outputs.LATEST_VERSION }} modules/app_eks/variables.tf
- name: Update terraform docs
uses: terraform-docs/gh-actions@main
with:
working-dir: .
output-file: README.md
output-method: inject
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: "fix: Set EKS default version to ${{ steps.eks.outputs.LATEST_VERSION }}"
commit-message: "fix: Set EKS default version to ${{ steps.eks.outputs.LATEST_VERSION }}"
delete-branch: true
branch: ci/upgrade-eks
mysql:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: "3.10"
check-latest: true
- name: Install dependencies
run: pip install -r scripts/requirements.txt
- id: mysql
name: Get latest MySQL version
run: python scripts/get_latest_rds_version.py
- name: Set MySQL Version
run: python scripts/set_variable_default.py database_engine_version ${{ steps.mysql.outputs.LATEST_VERSION }}
- name: Set MySQL Version
run: python scripts/set_variable_default.py engine_version ${{ steps.mysql.outputs.LATEST_VERSION }} modules/database/variables.tf
- name: Update terraform docs
uses: terraform-docs/gh-actions@main
with:
working-dir: .
output-file: README.md
output-method: inject
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: "fix: Set MySQL default version to ${{ steps.mysql.outputs.LATEST_VERSION }}"
commit-message: "fix: Set MySQL default version to ${{ steps.mysql.outputs.LATEST_VERSION }}"
delete-branch: true
branch: ci/upgrade-mysql