![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [azure/login](https://github.com/azure/login) from 1 to 2. - [Release notes](https://github.com/azure/login/releases) - [Commits](https://github.com/azure/login/compare/v1...v2) --- updated-dependencies: - dependency-name: azure/login dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
48 أسطر
1.3 KiB
YAML
48 أسطر
1.3 KiB
YAML
name: pr-validation
|
|
concurrency: ${{ github.event.number }}
|
|
|
|
on: pull_request
|
|
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
env:
|
|
resourceGroupName: pr_${{ github.event.number }}
|
|
resourceGroupLocation: eastus
|
|
|
|
jobs:
|
|
lint:
|
|
uses: ./.github/workflows/lint.yml
|
|
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4.1.1
|
|
- uses: azure/login@v2
|
|
name: Sign in to Azure
|
|
with:
|
|
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
|
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
|
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
|
|
- uses: Azure/cli@v1
|
|
name: Create resource group
|
|
with:
|
|
inlineScript: |
|
|
az group create \
|
|
--name ${{ env.resourceGroupName }} \
|
|
--location ${{ env.resourceGroupLocation }}
|
|
- uses: azure/arm-deploy@v1
|
|
id: deploy
|
|
name: Deploy Bicep file
|
|
with:
|
|
failOnStdErr: false
|
|
deploymentName: ${{ github.run_number }}
|
|
resourceGroupName: ${{ env.resourceGroupName }}
|
|
template: ./bicep/main.bicep
|
|
parameters: >
|
|
environmentType=Test
|
|
- name: Show website hostname
|
|
run: |
|
|
echo "Access the website at this address: https://${{ steps.deploy.outputs.appServiceAppHostName }}"
|