Skip to content

Commit

Permalink
cicd: shell script #TASK-5061
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfeSanahuja committed Oct 6, 2023
1 parent 7130346 commit ef250fe
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/test-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,12 @@ jobs:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Az CLI login
uses: azure/login@v1
with:
creds: ${{secrets.AZURE_CREDENTIALS}}
- name: Azure CLI script
uses: azure/CLI@v1
with:
azcliversion: latest
inlineScript: |
az aks get-credentials --resource-group opencga --file ~\.kube\config --name aks-uks-opencga-test-001 --subscription ${{secrets.AZURE_SUBSCRIPTION_ID}}
- name: Run kubectl tunnel
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: cat ~/.kube/config
with:
args: -n cellbase-db port-forward services/cellbase-rs0-svc 27017:27017 &
- name: Tunnel MongoDB
run: |
wget https://dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl
chmod +x ./kubectl
echo "${{ secrets.KUBE_CONFIG }}" > admin.conf
./kubectl -n cellbase-db port-forward services/cellbase-rs0-svc 27017:27017 --kubeconfig ./admin.conf &
- name: Install dependencies branches
run: |
if [ -f "./.github/workflows/scripts/get_same_branch.sh" ]; then
Expand Down

0 comments on commit ef250fe

Please sign in to comment.