Skip to content

Commit

Permalink
update azure login
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechcloudkubed committed Mar 12, 2024
1 parent ddddbf6 commit 64bf477
Show file tree
Hide file tree
Showing 4 changed files with 205 additions and 107 deletions.
2 changes: 1 addition & 1 deletion .github/actions/devcontainer_run_command/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ runs:
echo "AZURE_ENVIRONMENT=$azure_env" >> $GITHUB_ENV
- name: Azure Login
uses: azure/login@v1
uses: azure/login@v2
if: contains(inputs.COMMAND, 'bootstrap') != true
with:
creds: ${{ inputs.AZURE_CREDENTIALS }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/clean_validation_envs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Clean Validation Environments

on: # yamllint disable-line rule:truthy
on: # yamllint disable-line rule:truthy
schedule:
# Every 2 hours
- cron: "0 */2 * * *"
Expand All @@ -21,7 +21,7 @@ jobs:
persist-credentials: false

- name: Azure Login
uses: azure/login@v1
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
environment: ${{ (secrets.AZURE_ENVIRONMENT != '' && secrets.AZURE_ENVIRONMENT) || 'AzureCloud' }}
Expand Down
298 changes: 198 additions & 100 deletions .github/workflows/deploy_tre_reusable.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Deploy Azure TRE Reusable

on: # yamllint disable-line rule:truthy
on: # yamllint disable-line rule:truthy
workflow_call:
inputs:
prRef:
Expand Down Expand Up @@ -196,7 +196,7 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Azure Login
uses: azure/login@v1
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
environment: ${{ (vars.AZURE_ENVIRONMENT != '' && vars.AZURE_ENVIRONMENT) || 'AzureCloud' }}
Expand Down Expand Up @@ -270,7 +270,12 @@ jobs:
strategy:
fail-fast: true
matrix:
target: [build-and-push-api, build-and-push-resource-processor, build-and-push-airlock-processor]
target:
[
build-and-push-api,
build-and-push-resource-processor,
build-and-push-airlock-processor,
]

steps:
- name: Checkout
Expand Down Expand Up @@ -375,36 +380,66 @@ jobs:
strategy:
matrix:
include:
- {BUNDLE_TYPE: "workspace",
BUNDLE_DIR: "./templates/workspaces/base"}
- {BUNDLE_TYPE: "workspace",
BUNDLE_DIR: "./templates/workspaces/unrestricted"}
- {BUNDLE_TYPE: "workspace",
BUNDLE_DIR: "./templates/workspaces/airlock-import-review"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/guacamole"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/azureml"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/gitea"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/mlflow"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/mysql"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/health-services"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/databricks"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/ohdsi"}
- {BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-windowsvm"}
- {BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm"}
- {BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm"}
- {BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-import-reviewvm"}
- {
BUNDLE_TYPE: "workspace",
BUNDLE_DIR: "./templates/workspaces/base",
}
- {
BUNDLE_TYPE: "workspace",
BUNDLE_DIR: "./templates/workspaces/unrestricted",
}
- {
BUNDLE_TYPE: "workspace",
BUNDLE_DIR: "./templates/workspaces/airlock-import-review",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/guacamole",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/azureml",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/gitea",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/mlflow",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/mysql",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/health-services",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/databricks",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/ohdsi",
}
- {
BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-windowsvm",
}
- {
BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm",
}
- {
BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm",
}
- {
BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-import-reviewvm",
}
environment: ${{ inputs.environmentName }}
steps:
- name: Checkout
Expand Down Expand Up @@ -435,22 +470,38 @@ jobs:
strategy:
matrix:
include:
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/firewall/"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/gitea/"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/admin-vm/"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/airlock_notifier/"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/certs/"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/cyclecloud/"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/sonatype-nexus-vm/"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/databricks-auth/"}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/firewall/",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/gitea/",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/admin-vm/",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/airlock_notifier/",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/certs/",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/cyclecloud/",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/sonatype-nexus-vm/",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/databricks-auth/",
}
environment: ${{ inputs.environmentName }}
steps:
- name: Checkout
Expand Down Expand Up @@ -481,22 +532,38 @@ jobs:
strategy:
matrix:
include:
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/firewall"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/gitea"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/admin-vm/"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/airlock_notifier/"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/certs/"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/cyclecloud/"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/sonatype-nexus-vm/"}
- {BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/databricks-auth/"}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/firewall",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/gitea",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/admin-vm/",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/airlock_notifier/",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/certs/",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/cyclecloud/",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/sonatype-nexus-vm/",
}
- {
BUNDLE_TYPE: "shared_service",
BUNDLE_DIR: "./templates/shared_services/databricks-auth/",
}
environment: ${{ inputs.environmentName }}
steps:
- name: Checkout
Expand Down Expand Up @@ -534,28 +601,50 @@ jobs:
matrix:
include:
# bundles type can be inferred from the bundle dir (but this is more explicit)
- {BUNDLE_TYPE: "workspace",
BUNDLE_DIR: "./templates/workspaces/base"}
- {BUNDLE_TYPE: "workspace",
BUNDLE_DIR: "./templates/workspaces/unrestricted"}
- {BUNDLE_TYPE: "workspace",
BUNDLE_DIR: "./templates/workspaces/airlock-import-review"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/guacamole"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/azureml"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/gitea"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/mlflow"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/mysql"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/health-services"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/databricks"}
- {BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/ohdsi"}
- {
BUNDLE_TYPE: "workspace",
BUNDLE_DIR: "./templates/workspaces/base",
}
- {
BUNDLE_TYPE: "workspace",
BUNDLE_DIR: "./templates/workspaces/unrestricted",
}
- {
BUNDLE_TYPE: "workspace",
BUNDLE_DIR: "./templates/workspaces/airlock-import-review",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/guacamole",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/azureml",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/gitea",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/mlflow",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/mysql",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/health-services",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/databricks",
}
- {
BUNDLE_TYPE: "workspace_service",
BUNDLE_DIR: "./templates/workspace_services/ohdsi",
}

environment: ${{ inputs.environmentName }}
steps:
Expand Down Expand Up @@ -594,18 +683,26 @@ jobs:
strategy:
matrix:
include:
- {BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-windowsvm",
WORKSPACE_SERVICE_NAME: "tre-service-guacamole"}
- {BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm",
WORKSPACE_SERVICE_NAME: "tre-service-guacamole"}
- {BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm",
WORKSPACE_SERVICE_NAME: "tre-service-guacamole"}
- {BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-import-reviewvm",
WORKSPACE_SERVICE_NAME: "tre-service-guacamole"}
- {
BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-windowsvm",
WORKSPACE_SERVICE_NAME: "tre-service-guacamole",
}
- {
BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm",
WORKSPACE_SERVICE_NAME: "tre-service-guacamole",
}
- {
BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm",
WORKSPACE_SERVICE_NAME: "tre-service-guacamole",
}
- {
BUNDLE_TYPE: "user_resource",
BUNDLE_DIR: "./templates/workspace_services/guacamole/user_resources/guacamole-azure-import-reviewvm",
WORKSPACE_SERVICE_NAME: "tre-service-guacamole",
}
environment: ${{ inputs.environmentName }}
steps:
- name: Checkout
Expand Down Expand Up @@ -762,7 +859,8 @@ jobs:
if: ${{ inputs.e2eTestsCustomSelector != '' }}
runs-on: ubuntu-latest
environment: ${{ inputs.environmentName }}
needs: [deploy_shared_services, register_bundles, register_user_resource_bundles]
needs:
[deploy_shared_services, register_bundles, register_user_resource_bundles]
timeout-minutes: 300
steps:
- name: Checkout
Expand Down
Loading

0 comments on commit 64bf477

Please sign in to comment.