Skip to content

Commit

Permalink
cicd: Create azure-tunnel.yml for mongoDB test data #TASK-5061
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfeSanahuja committed Sep 28, 2023
1 parent f785365 commit 021821c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/azure-tunnel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Azure tunnel
on:
workflow_call:
secrets:
AZURE_CLIENT_ID:
required: true
AZURE_TENANT_ID:
required: true
AZURE_SUBSCRIPTION_ID:
required: true
AZURE_PASSWORD:
required: true

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Az CLI login
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
creds: ${{secrets.AZURE_CREDENTIALS}}
- name: Azure CLI script
uses: azure/CLI@v1
with:
azcliversion: latest
inlineScript: |
az aks get-credentials --resource-group opencga --name aks-uks-opencga-test-001
kubectl -n cellbase-db port-forward services/cellbase-rs0-svc 27017:27017 &
8 changes: 3 additions & 5 deletions .github/workflows/test-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ jobs:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Start MongoDB v6.0
uses: supercharge/[email protected]
with:
mongodb-version: 6.0
mongodb-replica-set: rs-test
- name: Create tunel to data
uses: ./.github/workflows/azure-tunnel.yml
secrets: inherit
- name: Install dependencies branches
run: |
if [ -f "./.github/workflows/scripts/get_same_branch.sh" ]; then
Expand Down

0 comments on commit 021821c

Please sign in to comment.