Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo001 #105

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"DOCKER_GROUP_ID": "${localEnv:DOCKER_GROUP_ID}",
"INTERACTIVE": "true",
"OSS_REPO": "microsoft/AzureTRE",
"OSS_VERSION": "v0.17.0"
"OSS_VERSION": "v0.15.2"
}
},
"runArgs": [
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy_tre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ name: Deploy Azure TRE
# It also runs on a schedule, serving as the nightly build

on: # yamllint disable-line rule:truthy
schedule:
# schedule:
# midnight every day https://crontab.guru/#0_0_*_*_*
- cron: "0 0 * * *"
push:
branches: [main]
# - cron: "0 0 * * *"
# push:
# branches: [main]
workflow_dispatch:
inputs:
environment:
Expand Down
80 changes: 80 additions & 0 deletions .github/workflows/deploy_tre_bundle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
name: Deploy Azure TRE (Bundle)
# This workflow is the integration build run for pushes to the main branch
# It also runs on a schedule, serving as the nightly build

on: # yamllint disable-line rule:truthy
workflow_dispatch:
inputs:
environment:
description: The environment to run this workflow in
type: environment
default: Dev
required: true
bundleType:
type: choice
description: Bundle Type
options:
- workspace
- workspace_service
- user_resource
- shared_service
bundleDir:
type: choice
description: Bundle Dir
options:
- workspaces
- workspace_services
- user_resources
- shared_services
bundleName:
type: string
description: Bundle Name

# bundleDir:
# type: string
# description: Bundle Directory e.g. ./templates/workspaces/base
# default: ./templates/stable/workspaces/airlock-import-review
workspaceName:
type: string
description: Workspace Name (Required if type is user_resource) tre-service-...

# This will prevent multiple runs of this entire workflow.
# We should NOT cancel in progress runs as that can destabilize the environment.
concurrency: "${{ github.workflow }}-${{ github.ref }}"

jobs:
run-deploy-tre-bundle:
name: "Deploy Bundle"
# if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/development'
uses: ./.github/workflows/deploy_tre_reusable_bundle.yml
with:
ciGitRef: ${{ github.ref }}
e2eTestsCustomSelector: >-
${{ (github.event_name == 'push' && 'extended or extended_aad')
|| 'extended or extended_aad or shared_services or airlock' }}
environmentName: ${{ github.event.inputs.environment || 'CICD' }}
E2E_TESTS_NUMBER_PROCESSES: 1
DEVCONTAINER_TAG: "latest"
bundleType: ${{ inputs.bundleType }}
bundleDir: "./templates/${{ inputs.bundleDir }}/${{ inputs.bundleName }}"
workspaceName: ${{ inputs.workspaceName }}
secrets:
AAD_TENANT_ID: ${{ secrets.AAD_TENANT_ID }}
ACR_NAME: ${{ secrets.ACR_NAME }}
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
API_CLIENT_ID: ${{ secrets.API_CLIENT_ID }}
API_CLIENT_SECRET: ${{ secrets.API_CLIENT_SECRET }}
APPLICATION_ADMIN_CLIENT_ID: ${{ secrets.APPLICATION_ADMIN_CLIENT_ID }}
APPLICATION_ADMIN_CLIENT_SECRET: ${{ secrets.APPLICATION_ADMIN_CLIENT_SECRET }}
MGMT_RESOURCE_GROUP_NAME: ${{ secrets.MGMT_RESOURCE_GROUP_NAME }}
MS_TEAMS_WEBHOOK_URI: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
MGMT_STORAGE_ACCOUNT_NAME: ${{ secrets.MGMT_STORAGE_ACCOUNT_NAME }}
SWAGGER_UI_CLIENT_ID: ${{ secrets.SWAGGER_UI_CLIENT_ID }}
TEST_APP_ID: ${{ secrets.TEST_APP_ID }}
TEST_WORKSPACE_APP_ID: ${{ secrets.TEST_WORKSPACE_APP_ID }}
TEST_WORKSPACE_APP_SECRET: "${{ secrets.TEST_WORKSPACE_APP_SECRET }}"
TEST_ACCOUNT_CLIENT_ID: "${{ secrets.TEST_ACCOUNT_CLIENT_ID }}"
TEST_ACCOUNT_CLIENT_SECRET: "${{ secrets.TEST_ACCOUNT_CLIENT_SECRET }}"
TRE_ID: ${{ secrets.TRE_ID }}
CI_CACHE_ACR_NAME: ${{ secrets.ACR_NAME }}
8 changes: 6 additions & 2 deletions .github/workflows/deploy_tre_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,9 @@ jobs:
BUNDLE_DIR: "\\${AZURETRE_HOME}/templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm"}
- {BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "\\${AZURETRE_HOME}/templates/workspace_services/guacamole/user_resources/guacamole-azure-import-reviewvm"}
# Add your custom Bundles below this
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/databricks"}
# Add your custom Bundles below this
environment: ${{ inputs.environmentName }}
steps:
- name: Checkout
Expand Down Expand Up @@ -547,7 +549,9 @@ jobs:
BUNDLE_DIR: "\\${AZURETRE_HOME}/templates/workspace_services/databricks"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "\\${AZURETRE_HOME}/templates/workspace_services/ohdsi"}
# Add your bundles here
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/databricks"}
# Add your bundles here
environment: ${{ inputs.environmentName }}
steps:
- name: Checkout
Expand Down
Loading
Loading