Perf test dashboard setup (#212) #106
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
# ------------------------------------------------------------ | |
# Copyright (c) Microsoft Corporation. | |
# Licensed under the MIT License. | |
# ------------------------------------------------------------ | |
name: deploy-longhaul-release | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: update dapr runtime on release longhaul cluster | |
runs-on: ubuntu-latest | |
env: | |
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | |
DAPR_RUNTIME_VER: 1.12.0 | |
DAPR_NAMESPACE: dapr-system | |
TEST_CLUSTER_NAME: aks-longhaul-release | |
TEST_RESOURCE_GROUP: aks-longhaul-release | |
HELMVER: v3.7.2 | |
# Test applications-specific settings | |
APP_NAMESPACE: longhaul-test | |
KUBECTLVER: v1.19.3 | |
steps: | |
- name: Set up Dapr CLI | |
run: wget -q ${{ env.DAPR_INSTALL_URL }} -O - | /bin/bash | |
- name: Set up Helm ${{ env.HELMVER }} | |
uses: azure/setup-helm@v1 | |
with: | |
version: ${{ env.HELMVER }} | |
- name: Login Azure | |
run: | | |
az login --service-principal -u ${{ secrets.AZURE_LOGIN_USER }} -p ${{ secrets.AZURE_LOGIN_PASS }} --tenant ${{ secrets.AZURE_TENANT }} --output none | |
- name: Set up kubeconf for longhaul cluster ${{ env.TEST_CLUSTER_NAME }} | |
run: | | |
az aks get-credentials -n ${{ env.TEST_CLUSTER_NAME }} -g ${{ env.TEST_RESOURCE_GROUP }} | |
- name: Deploy dapr version ${{ env.DAPR_RUNTIME_VER }} to longhaul cluster | |
run: | | |
dapr upgrade -k --runtime-version ${{ env.DAPR_RUNTIME_VER }} | |
# Bounce apps so they pick up a new dapr version | |
- name: Checkout dapr/test-infra | |
uses: actions/checkout@v2 | |
with: | |
repository: dapr/test-infra | |
ref: refs/heads/master | |
path: longhaul | |
- name: Setup kubectl ${{ env.KUBECTLVER }} | |
uses: azure/setup-kubectl@v3 | |
with: | |
version: ${{ env.KUBECTLVER }} | |
id: install | |
- name: Deploy test applications | |
working-directory: ./longhaul | |
run: | | |
kubectl apply -f ./longhaul-test/feed-generator-deploy.yml -n ${{ env.APP_NAMESPACE }} && kubectl rollout restart deploy/feed-generator-app -n ${{ env.APP_NAMESPACE }} | |
kubectl apply -f ./longhaul-test/hashtag-actor-deploy.yml -n ${{ env.APP_NAMESPACE }} && kubectl rollout restart deploy/hashtag-actor-app -n ${{ env.APP_NAMESPACE }} | |
kubectl apply -f ./longhaul-test/hashtag-counter-deploy.yml -n ${{ env.APP_NAMESPACE }} && kubectl rollout restart deploy/hashtag-counter-app -n ${{ env.APP_NAMESPACE }} | |
kubectl apply -f ./longhaul-test/message-analyzer-deploy.yml -n ${{ env.APP_NAMESPACE }} && kubectl rollout restart deploy/message-analyzer-app -n ${{ env.APP_NAMESPACE }} | |
kubectl apply -f ./longhaul-test/pubsub-workflow-deploy.yml -n ${{ env.APP_NAMESPACE }} && kubectl rollout restart deploy/pubsub-workflow-app -n ${{ env.APP_NAMESPACE }} | |
kubectl apply -f ./longhaul-test/snapshot-deploy.yml -n ${{ env.APP_NAMESPACE }} && kubectl rollout restart deploy/snapshot-app -n ${{ env.APP_NAMESPACE }} | |
kubectl apply -f ./longhaul-test/validation-worker-deploy.yml -n ${{ env.APP_NAMESPACE }} && kubectl rollout restart deploy/validation-worker-app -n ${{ env.APP_NAMESPACE }} | |
kubectl apply -f ./longhaul-test/workflow-gen-deploy.yml -n ${{ env.APP_NAMESPACE }} && kubectl rollout restart deploy/workflow-gen-app -n ${{ env.APP_NAMESPACE }} |