Skip to content

Commit

Permalink
cicd: Az CLI login TASK-5061
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfeSanahuja committed Oct 6, 2023
1 parent 43e5e42 commit 4390140
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/test-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ jobs:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Create tunnel to data
run: |
curl -sL https://aka.ms/InstallAzureCLIDeb | bash
wget https://dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl
chmod +x ./kubectl
az login --service-principal -u "${{ secrets.AZURE_CLIENT_ID }}" -p "${{secrets.AZURE_CREDENTIALS}}" --tenant "${{ secrets.AZURE_TENANT_ID }}"
az aks get-credentials --resource-group opencga --name aks-uks-opencga-test-001 --subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
./kubectl -n cellbase-db port-forward services/cellbase-rs0-svc 27017:27017 &
- 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: Install dependencies branches
run: |
if [ -f "./.github/workflows/scripts/get_same_branch.sh" ]; then
Expand Down

0 comments on commit 4390140

Please sign in to comment.