Skip to content

load json file from main dir #230

load json file from main dir

load json file from main dir #230

Workflow file for this run

name: Deploy to AKS Cluster
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Decrypt large secret
run: ./decrypt.sh
env:
CONFIG_INI_PASSPHRASE: ${{ secrets.CONFIG_INI_PASSPHRASE }}
- uses: Azure/docker-login@v1
with:
login-server: tbsacr.azurecr.io
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- run: |
docker build -f ./docker/both/Dockerfile . -t tbsacr.azurecr.io/suggestion:${{ github.sha }}
docker push tbsacr.azurecr.io/suggestion:${{ github.sha }}
# Set the target AKS cluster.
- uses: Azure/aks-set-context@v1
with:
creds: "${{ secrets.AZURE_CREDENTIALS }}"
cluster-name: tbs-prod-aks
resource-group: tbs-prod-rg
- uses: Azure/k8s-deploy@v1
with:
manifests: |
kubernetes/suggestion-deployment.yaml
kubernetes/suggestion-service.yaml
images: |
tbsacr.azurecr.io/suggestion:${{ github.sha }}
namespace: |
pagesuccess