Skip to content

Commit abacc64

Browse files
committed
rerun2
1 parent 5bbf4da commit abacc64

File tree

2 files changed

+30
-38
lines changed

2 files changed

+30
-38
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,35 @@
1-
name: Manual Deploy ARM
1+
name: Azure Bicep
22

33
on:
4-
workflow_dispatch:
4+
workflow_dispatch
55

66
env:
7-
targetEnv: dev
8-
9-
permissions:
10-
id-token: write
11-
contents: read
12-
7+
targetEnv: dev
138

149
jobs:
15-
deploy:
16-
runs-on: ubuntu-latest
17-
18-
steps:
19-
- name: Checkout repository
20-
uses: actions/checkout@v2
21-
22-
- name: Log in to Azure
23-
uses: azure/login@v1
24-
with:
25-
client-id: ${{ secrets.AZURE_CLIENT_ID }}
26-
tenant-id: ${{secrets.AZURE_TENANT_ID}}
27-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
28-
enable-AzPSSession: true
29-
env:
30-
AZURE_LOGIN_PRE_CLEANUP: true
31-
32-
- name: Deploy ARM Template
33-
uses: azure/arm-deploy@v1
34-
with:
35-
scope: resourceGroup
36-
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
37-
resourceGroupName: ${{ secrets.AZURE_RG }}
38-
template: src/InfrastructureAsCode/main.bicep
39-
#parameters: src/InfrastructureAsCode/main.parameters.json
40-
parameters: environment=${{ secrets.ENVIRONMENT }}
41-
42-
- name: Deploy application
43-
run: echo "Deploying application..."
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
steps:
17+
# Checkout code
18+
- uses: actions/checkout@main
19+
20+
# Log into Azure
21+
- uses: azure/[email protected]
22+
with:
23+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
24+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
25+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
26+
enable-AzPSSession: true
27+
28+
# Deploy ARM template
29+
- name: Run ARM deploy
30+
uses: azure/arm-deploy@v1
31+
with:
32+
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
33+
resourceGroupName: ${{ secrets.AZURE_RG }}
34+
template: ./src/InfrastructureAsCode/main.bicep
35+
parameters: environment=${{ env.targetEnv }}

src/InfrastructureAsCode/federated-credential-params.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "GitHubDevOpsCredential2",
2+
"name": "GitHubDevOpsCredential3",
33
"issuer": "https://token.actions.githubusercontent.com",
44
"subject": "repo:bmoussaud/TechExcel-Accelerate-developer-productivity-with-GitHub-Copilot-and-Dev-Box:ref:refs/heads/main",
55
"description": "Deploy Azure resources from the TechExcel DevOps practices GitHub repo",

0 commit comments

Comments
 (0)