Skip to content

Commit

Permalink
config: add workflow to deploy to AKS (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioRodriguezRuiz authored Jan 5, 2025
1 parent db11e1d commit c97a9ee
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-aks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy to AKS

on:
workflow_dispatch:
workflow_run:
workflows:
- Build and Push Docker Image
types:
- completed
branches:
- main

jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up KUBECONFIG
uses: azure/k8s-set-context@v4
with:
kubeconfig: ${{ secrets.KUBECONFIG }}

- name: Apply manifests
run: |
echo "Apply manifests..."
kubectl apply -f kubernetes/
- name: Restart specified deployments
run: |
echo "Restarting api-gateway ..."
kubectl rollout restart deployment api-gateway

0 comments on commit c97a9ee

Please sign in to comment.