Skip to content

Commit

Permalink
cicd: Delete action azure and create bash script #TASK-5061
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfeSanahuja committed Oct 4, 2023
1 parent 94372b1 commit 3d9f535
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 51 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/azure-tunnel.yml

This file was deleted.

25 changes: 7 additions & 18 deletions .github/workflows/test-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ jobs:
test:
name: Test and push Sonar analysis
runs-on: ubuntu-22.04
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -26,19 +21,13 @@ jobs:
java-version: '11'
cache: 'maven'
- name: Create tunnel to data
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 &
run: |
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo 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: Install dependencies branches
run: |
if [ -f "./.github/workflows/scripts/get_same_branch.sh" ]; then
Expand Down

0 comments on commit 3d9f535

Please sign in to comment.