Update SeedData.cs #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |