-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 939 Bytes
/
infrastructure.yaml
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
#
# GitHub Actions workflow.
#
# Deploys RabbitMQ and MongoDB database.
#
name: Deploy infrastructure
on:
#
# Allows deployment to be invoked manually through the GitHub Actions user interface.
#
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE.
- uses: actions/checkout@v3
#
# Installs Kubectl and connects it to the cluster.
#
# https://github.com/marketplace/actions/kubernetes-cli-kubectl
#
- uses: tale/kubectl-action@v1
with:
base64-kube-config: ${{ secrets.KUBE_CONFIG }}
kubectl-version: v1.24.2
#
# Deploys MongoDB.
#
- name: Deploy MongoDB
run: kubectl apply -f ./scripts/cd/mongodb.yaml
#
# Deploys RabbitMQ.
#
- name: Deploy Rabbit
run: kubectl apply -f ./scripts/cd/rabbit.yaml