Add Jest #2
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 to Kubernetes | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
service: | |
[ | |
user-service, | |
product-service, | |
shopping-cart-service, | |
order-service, | |
payment-service, | |
notification-service, | |
] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up kubectl | |
uses: azure/setup-kubectl@v1 | |
- name: Authenticate to Kubernetes | |
uses: azure/cli@v1 | |
with: | |
azcliversion: "2.0.72" | |
inlineScript: "echo 'Authenticated to Kubernetes'" | |
- name: Deploy to Kubernetes | |
run: | | |
kubectl apply -f ${{ matrix.service }}/deployment.yaml | |
kubectl apply -f ${{ matrix.service }}/service.yaml |