Skip to content

Commit

Permalink
cicd: Create tunnel in two steps #TASK-5061
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfeSanahuja committed Oct 3, 2023
1 parent 4401648 commit 859119b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/azure-tunnel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ on:
required: true

jobs:
build-and-deploy:
runs-on: ubuntu-latest
tunnel:
name: Create tunnel
runs-on: ubuntu-22.04
steps:
- name: Az CLI login
uses: azure/login@v1
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/test-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,19 @@ jobs:
java-version: '11'
cache: 'maven'
- name: Create tunnel to data
uses: ./.github/workflows/azure-tunnel.yml
uses: azure/login@v1
with:
secrets: inherit
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 &
- name: Install dependencies branches
run: |
if [ -f "./.github/workflows/scripts/get_same_branch.sh" ]; then
Expand Down

0 comments on commit 859119b

Please sign in to comment.