-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* robust jobs api longhaul test Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * fix file name Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * add actor reminder test apps: client + server Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * update ports and add dockerfile Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * add workflow app Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * add bicep per app Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * add workflow deploy yaml updates Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * add redeploy config and aks/app bicep files Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * tweak compose Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * update ctx + cleanup + readme Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * wf test updates Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * update actor reminder client code Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * Update scheduler-actor-reminders/Dockerfile-client Co-authored-by: Elena Kolevska <elena-kolevska@users.noreply.github.com> Signed-off-by: Cassie Coyle <cassie.i.coyle@gmail.com> * fix ports and infra config Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * fix docker-compose image name Signed-off-by: Cassandra Coyle <cassie@diagrid.io> --------- Signed-off-by: Cassandra Coyle <cassie@diagrid.io> Signed-off-by: Cassie Coyle <cassie.i.coyle@gmail.com> Co-authored-by: Elena Kolevska <elena-kolevska@users.noreply.github.com>
- Loading branch information
1 parent
a88f0af
commit b0653a0
Showing
40 changed files
with
2,469 additions
and
4 deletions.
There are no files selected for viewing
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
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
84 changes: 84 additions & 0 deletions
84
.github/workflows/scheduler-actor-reminders-client-build.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# ------------------------------------------------------------ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
# ------------------------------------------------------------ | ||
|
||
name: build-scheduler-actor-reminders-client | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'scheduler-actor-reminders/client/**' | ||
- '.github/workflows/scheduler-actor-reminders-client-build.yml' | ||
- '.github/workflows/dapr-deploy.yml' | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'scheduler-actor-reminders/client/**' | ||
|
||
jobs: | ||
build: | ||
name: build scheduler-actor-reminders-client | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_REGISTRY: daprtests.azurecr.io | ||
APP_IMAGE_NAME: scheduler-actor-reminders-client | ||
# TODO: APP_VER needs to be versioned correctly | ||
APP_VER: dev | ||
APP_DIR: ./scheduler-actor-reminders-client | ||
ARTIFACT_DIR: ./deploy_artifact | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: docker login | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ${{ secrets.DOCKER_REGISTRY }} | ||
username: ${{ secrets.DOCKER_REGISTRY_ID }} | ||
password: ${{ secrets.DOCKER_REGISTRY_PASS }} | ||
- name: Build scheduler-actor-reminders-client app docker image | ||
run: | | ||
docker compose build ${{ env.APP_IMAGE_NAME }} | ||
docker tag ${{ env.APP_IMAGE_NAME }} ${{ env.APP_REGISTRY }}/${{ env.APP_IMAGE_NAME }}:${{ env.APP_VER }} | ||
- name: Push scheduler-actor-reminders-client app image to dockerhub | ||
if: github.event_name != 'pull_request' | ||
run: | | ||
docker push ${{ env.APP_REGISTRY }}/${{ env.APP_IMAGE_NAME }}:${{ env.APP_VER }} | ||
- name: Copy deployment yaml to archieve | ||
run: | | ||
mkdir -p ${{ env.ARTIFACT_DIR }} | ||
cp ./longhaul-test/*.yml ${{ env.ARTIFACT_DIR }} | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: longhaul-test | ||
path: ${{ env.ARTIFACT_DIR }} | ||
deploy: | ||
name: deploy scheduler-actor-reminders-client to test cluster | ||
needs: build | ||
if: github.event_name != 'pull_request' | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_NAMESPACE: longhaul-test | ||
TEST_CLUSTER_NAME: aks-longhaul-release | ||
TEST_RESOURCE_GROUP: aks-longhaul-release | ||
ARTIFACT_DIR: ./deploy_artifact | ||
steps: | ||
- name: download artifacts | ||
uses: actions/download-artifact@master | ||
with: | ||
name: longhaul-test | ||
path: ${{ env.ARTIFACT_DIR }} | ||
- 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 test environment | ||
run: | | ||
az aks get-credentials -n ${{ env.TEST_CLUSTER_NAME }} -g ${{ env.TEST_RESOURCE_GROUP }} | ||
- name: Deploy apps to longhaul test environment | ||
run: | | ||
kubectl apply -n ${{ env.APP_NAMESPACE }} -f ${{ env.ARTIFACT_DIR }}/scheduler-actor-reminders-client-deploy.yml & kubectl rollout restart -n ${{ env.APP_NAMESPACE }} deploy/scheduler-actor-reminders-client-app |
84 changes: 84 additions & 0 deletions
84
.github/workflows/scheduler-actor-reminders-server-build.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# ------------------------------------------------------------ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
# ------------------------------------------------------------ | ||
|
||
name: build-scheduler-actor-reminders-server | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'scheduler-actor-reminders/server/**' | ||
- '.github/workflows/scheduler-actor-reminders-server-build.yml' | ||
- '.github/workflows/dapr-deploy.yml' | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'scheduler-actor-reminders/server/**' | ||
|
||
jobs: | ||
build: | ||
name: build scheduler-actor-reminders-server | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_REGISTRY: daprtests.azurecr.io | ||
APP_IMAGE_NAME: scheduler-actor-reminders-server | ||
# TODO: APP_VER needs to be versioned correctly | ||
APP_VER: dev | ||
APP_DIR: ./scheduler-actor-reminders-server | ||
ARTIFACT_DIR: ./deploy_artifact | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: docker login | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ${{ secrets.DOCKER_REGISTRY }} | ||
username: ${{ secrets.DOCKER_REGISTRY_ID }} | ||
password: ${{ secrets.DOCKER_REGISTRY_PASS }} | ||
- name: Build scheduler-actor-reminders-server app docker image | ||
run: | | ||
docker compose build ${{ env.APP_IMAGE_NAME }} | ||
docker tag ${{ env.APP_IMAGE_NAME }} ${{ env.APP_REGISTRY }}/${{ env.APP_IMAGE_NAME }}:${{ env.APP_VER }} | ||
- name: Push scheduler-actor-reminders-server app image to dockerhub | ||
if: github.event_name != 'pull_request' | ||
run: | | ||
docker push ${{ env.APP_REGISTRY }}/${{ env.APP_IMAGE_NAME }}:${{ env.APP_VER }} | ||
- name: Copy deployment yaml to archieve | ||
run: | | ||
mkdir -p ${{ env.ARTIFACT_DIR }} | ||
cp ./longhaul-test/*.yml ${{ env.ARTIFACT_DIR }} | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: longhaul-test | ||
path: ${{ env.ARTIFACT_DIR }} | ||
deploy: | ||
name: deploy scheduler-actor-reminders-server to test cluster | ||
needs: build | ||
if: github.event_name != 'pull_request' | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_NAMESPACE: longhaul-test | ||
TEST_CLUSTER_NAME: aks-longhaul-release | ||
TEST_RESOURCE_GROUP: aks-longhaul-release | ||
ARTIFACT_DIR: ./deploy_artifact | ||
steps: | ||
- name: download artifacts | ||
uses: actions/download-artifact@master | ||
with: | ||
name: longhaul-test | ||
path: ${{ env.ARTIFACT_DIR }} | ||
- 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 test environment | ||
run: | | ||
az aks get-credentials -n ${{ env.TEST_CLUSTER_NAME }} -g ${{ env.TEST_RESOURCE_GROUP }} | ||
- name: Deploy apps to longhaul test environment | ||
run: | | ||
kubectl apply -n ${{ env.APP_NAMESPACE }} -f ${{ env.ARTIFACT_DIR }}/scheduler-actor-reminders-server-deploy.yml & kubectl rollout restart -n ${{ env.APP_NAMESPACE }} deploy/scheduler-actor-reminders-server-app |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# ------------------------------------------------------------ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
# ------------------------------------------------------------ | ||
|
||
name: build-scheduler-jobs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'scheduler-jobs/**' | ||
- '.github/workflows/scheduler-jobs-build.yml' | ||
- '.github/workflows/dapr-deploy.yml' | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'scheduler-jobs/**' | ||
|
||
jobs: | ||
build: | ||
name: build scheduler-jobs | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_REGISTRY: daprtests.azurecr.io | ||
APP_IMAGE_NAME: scheduler-jobs | ||
# TODO: APP_VER needs to be versioned correctly | ||
APP_VER: dev | ||
APP_DIR: ./scheduler-jobs | ||
ARTIFACT_DIR: ./deploy_artifact | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: docker login | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ${{ secrets.DOCKER_REGISTRY }} | ||
username: ${{ secrets.DOCKER_REGISTRY_ID }} | ||
password: ${{ secrets.DOCKER_REGISTRY_PASS }} | ||
- name: Build scheduler-jobs app docker image | ||
run: | | ||
docker compose build ${{ env.APP_IMAGE_NAME }} | ||
docker tag ${{ env.APP_IMAGE_NAME }} ${{ env.APP_REGISTRY }}/${{ env.APP_IMAGE_NAME }}:${{ env.APP_VER }} | ||
- name: Push scheduler-jobs app image to dockerhub | ||
if: github.event_name != 'pull_request' | ||
run: | | ||
docker push ${{ env.APP_REGISTRY }}/${{ env.APP_IMAGE_NAME }}:${{ env.APP_VER }} | ||
- name: Copy deployment yaml to archieve | ||
run: | | ||
mkdir -p ${{ env.ARTIFACT_DIR }} | ||
cp ./longhaul-test/*.yml ${{ env.ARTIFACT_DIR }} | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: longhaul-test | ||
path: ${{ env.ARTIFACT_DIR }} | ||
deploy: | ||
name: deploy scheduler-jobs to test cluster | ||
needs: build | ||
if: github.event_name != 'pull_request' | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_NAMESPACE: longhaul-test | ||
TEST_CLUSTER_NAME: aks-longhaul-release | ||
TEST_RESOURCE_GROUP: aks-longhaul-release | ||
ARTIFACT_DIR: ./deploy_artifact | ||
steps: | ||
- name: download artifacts | ||
uses: actions/download-artifact@master | ||
with: | ||
name: longhaul-test | ||
path: ${{ env.ARTIFACT_DIR }} | ||
- 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 test environment | ||
run: | | ||
az aks get-credentials -n ${{ env.TEST_CLUSTER_NAME }} -g ${{ env.TEST_RESOURCE_GROUP }} | ||
- name: Deploy apps to longhaul test environment | ||
run: | | ||
kubectl apply -n ${{ env.APP_NAMESPACE }} -f ${{ env.ARTIFACT_DIR }}/scheduler-jobs-deploy.yml & kubectl rollout restart -n ${{ env.APP_NAMESPACE }} deploy/scheduler-jobs-app |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# ------------------------------------------------------------ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
# ------------------------------------------------------------ | ||
|
||
name: build-scheduler-workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'scheduler-workflow/**' | ||
- '.github/workflows/scheduler-workflow-build.yml' | ||
- '.github/workflows/dapr-deploy.yml' | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'scheduler-workflow/**' | ||
|
||
jobs: | ||
build: | ||
name: build scheduler-workflow | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_REGISTRY: daprtests.azurecr.io | ||
APP_IMAGE_NAME: scheduler-workflow | ||
# TODO: APP_VER needs to be versioned correctly | ||
APP_VER: dev | ||
APP_DIR: ./scheduler-workflow | ||
ARTIFACT_DIR: ./deploy_artifact | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: docker login | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ${{ secrets.DOCKER_REGISTRY }} | ||
username: ${{ secrets.DOCKER_REGISTRY_ID }} | ||
password: ${{ secrets.DOCKER_REGISTRY_PASS }} | ||
- name: Build scheduler-workflow app docker image | ||
run: | | ||
docker compose build ${{ env.APP_IMAGE_NAME }} | ||
docker tag ${{ env.APP_IMAGE_NAME }} ${{ env.APP_REGISTRY }}/${{ env.APP_IMAGE_NAME }}:${{ env.APP_VER }} | ||
- name: Push scheduler-workflow app image to dockerhub | ||
if: github.event_name != 'pull_request' | ||
run: | | ||
docker push ${{ env.APP_REGISTRY }}/${{ env.APP_IMAGE_NAME }}:${{ env.APP_VER }} | ||
- name: Copy deployment yaml to archieve | ||
run: | | ||
mkdir -p ${{ env.ARTIFACT_DIR }} | ||
cp ./longhaul-test/*.yml ${{ env.ARTIFACT_DIR }} | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: longhaul-test | ||
path: ${{ env.ARTIFACT_DIR }} | ||
deploy: | ||
name: deploy scheduler-workflow to test cluster | ||
needs: build | ||
if: github.event_name != 'pull_request' | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_NAMESPACE: longhaul-test | ||
TEST_CLUSTER_NAME: aks-longhaul-release | ||
TEST_RESOURCE_GROUP: aks-longhaul-release | ||
ARTIFACT_DIR: ./deploy_artifact | ||
steps: | ||
- name: download artifacts | ||
uses: actions/download-artifact@master | ||
with: | ||
name: longhaul-test | ||
path: ${{ env.ARTIFACT_DIR }} | ||
- 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 test environment | ||
run: | | ||
az aks get-credentials -n ${{ env.TEST_CLUSTER_NAME }} -g ${{ env.TEST_RESOURCE_GROUP }} | ||
- name: Deploy apps to longhaul test environment | ||
run: | | ||
kubectl apply -n ${{ env.APP_NAMESPACE }} -f ${{ env.ARTIFACT_DIR }}/scheduler-workflow-deploy.yml & kubectl rollout restart -n ${{ env.APP_NAMESPACE }} deploy/scheduler-workflow-app |
Oops, something went wrong.