Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
M3GH4NN authored Jan 11, 2024
1 parent 0a74c99 commit d5da074
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,34 +36,29 @@ jobs:
- name: Echo Changed Files Output
run: echo "${{ toJSON(needs.get-changed-files.outputs.changed-files) }}"

#azure-login:
# name: Azure Login
#runs-on: ubuntu-latest
#steps:
# - name: Set up Azure credentials
# run: |
# echo "Logging into Azure..."
# az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}
# az account set --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }}
#env:
# AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
#AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
#AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
#AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}

check-az-cli:
runs-on: ubuntu-latest
steps:
- name: Check if Azure CLI is installed
run: |
if ! command -v az &> /dev/null; then
echo "Azure CLI is not installed."
exit 1
fi
azure-login:
name: Azure Login
runs-on: ubuntu-latest
steps:
- name: Set up Azure credentials
run: |
echo "Logging into Azure..."
az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}
az account set --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }}
# check-az-cli:
# runs-on: ubuntu-latest
# steps:
# - name: Check if Azure CLI is installed
# run: |
# if ! command -v az &> /dev/null; then
# echo "Azure CLI is not installed."
# exit 1
# fi

az --version
# az --version

azure-login:
azure-login2:
runs-on: ubuntu-latest
steps:
- name: 'Az CLI login'
Expand Down

0 comments on commit d5da074

Please sign in to comment.