-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (46 loc) · 1.52 KB
/
payment-api-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
name: Deploy payment-api to k8s
on:
workflow_dispatch:
push:
branches:
- main
paths:
- .github/workflows/payment-api-deploy.yml
- .github/workflows/composite/deploy/action.yml
- deploy/k8s/payment-service.yaml
- SimpleServer/src/Services/Payment/Payment.API/**
env:
NAMESPACE: ingress-nginx
jobs:
deploy-to-k8s:
environment: production
permissions:
actions: read
# contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
# Logs in with your Azure credentials
- name: Azure login
uses: azure/[email protected]
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- uses: ./.github/workflows/composite/deploy
with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }}
manifest_path: |
deploy/k8s/postgres-secret.yaml
deploy/k8s/postgres-configmap.yaml
deploy/k8s/postgresql.yaml
deploy/k8s/stripe-secret.yaml
deploy/k8s/payment-service.yaml
registry_endpoint: ${{ secrets.REGISTRY_ENDPOINT }}
namespace: ${{ env.NAMESPACE }}
image_name: payment.api
deployment_name: payment-api-deployment
service_name: payment-api-service