Skip to content

Commit 838aef2

Browse files
authored
Create ACI Deployment Workflow.yml
1 parent 185f51a commit 838aef2

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy to ACI
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: 'Login to Azure'
12+
uses: azure/login@v1
13+
with:
14+
creds: ${{ secrets.AZURE_CREDENTIALS }}
15+
16+
- name: 'Deploy to Azure Container Instances'
17+
uses: 'azure/aci-deploy@v1'
18+
with:
19+
resource-group: jp
20+
dns-name-label: myappdeployment
21+
image: ${{ secrets.REGISTRY_LOGIN_SERVER }}/app:latest
22+
location: 'eastus'
23+
cpu: 1
24+
memory: 1.5
25+
ports: 80

0 commit comments

Comments
 (0)