-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (70 loc) · 2.18 KB
/
kubernetes-deploy.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
name: Mediawiki Kubernetes Cluster Deployment
on:
push:
branches:
- 'smw'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: azure/setup-kubectl@v3
id: install
- uses: actions/checkout@v3
- name: Kubernetes Set Context
uses: Azure/[email protected]
with:
cluster-type: generic
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}
- name: MEDIAWIKI Secrets
uses: Azure/[email protected]
with:
secret-type: 'generic'
secret-name: mediawiki-keys
data: ${{ secrets.MEDIAWIKI_KEYS }}
- name: PRD_DB_PASSWORD Secret
uses: Azure/[email protected]
with:
secret-type: 'generic'
secret-name: prd-db-password
data: ${{ secrets.PRD_DB_PASSWORD }}
- name: PLAUSIBLE_POSTGRES Secret
uses: Azure/[email protected]
with:
secret-type: 'generic'
secret-name: plausible-postgres
data: ${{ secrets.PLAUSIBLE_POSTGRES }}
- name: PLAUSIBLE_CONFIG Secret
uses: Azure/[email protected]
with:
secret-type: 'generic'
secret-name: plausible-config
data: ${{ secrets.PLAUSIBLE_CONFIG }}
- name: BACKUP_KEYS Secret
uses: Azure/[email protected]
with:
secret-type: 'generic'
secret-name: backup-keys
data: ${{ secrets.BACKUP_KEYS }}
- name: IMAGES_KEYS Secret
uses: Azure/[email protected]
with:
secret-type: 'generic'
secret-name: images-keys
data: ${{ secrets.IMAGES_KEYS }}
- name: SITEMAP_KEYS Secret
uses: Azure/[email protected]
with:
secret-type: 'generic'
secret-name: sitemap-keys
data: ${{ secrets.SITEMAP_KEYS }}
- name: Deploy to Kubernetes cluster
uses: Azure/[email protected]
with:
# Path to the manifest files which will be used for deployment.
manifests: |
mediawiki
plausible
shared
strategy: basic
action: deploy